projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a674978
)
client: Fix lsatt completer.
author
Andre Noll
<maan@tuebingen.mpg.de>
Tue, 29 Mar 2016 16:16:33 +0000
(16:16 +0000)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/client.c
b/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};
-
- 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,