]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 2d6ef31f590bca1736d458cc61c4fbe67459641b..40ae9bc87f432b3812182d44da7953052afb2a4b 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};
                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,
 }
 
 static void mvatt_completer(struct i9e_completion_info *ci,