client: Fix lsatt completer.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 29 Mar 2016 16:16:33 +0000 (16:16 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 29 Mar 2016 16:18:53 +0000 (16:18 +0000)
The lsatt command does not take any non-option arguments. So it is wrong
to complete on the available attributes.

client.c

index 2d6ef31..40ae9bc 100644 (file)
--- 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,