From 8843e506d1af0f71c61e2c301bea9b612187e360 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 29 Mar 2016 16:16:33 +0000 Subject: [PATCH] client: Fix lsatt completer. The lsatt command does not take any non-option arguments. So it is wrong to complete on the available attributes. --- client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client.c b/client.c index 2d6ef31f..40ae9bc8 100644 --- a/client.c +++ b/client.c @@ -316,11 +316,7 @@ static void lsatt_completer(struct i9e_completion_info *ci, struct i9e_completion_result *cr) { char *opts[] = {"-i", "-l", "-r", NULL}; - - if (ci->word[0] == '-') - i9e_complete_option(opts, ci, cr); - else - complete_attributes(ci->word, &cr->matches); + i9e_complete_option(opts, ci, cr); } static void mvatt_completer(struct i9e_completion_info *ci, -- 2.39.2