From: Andre Noll Date: Tue, 29 Mar 2016 16:16:33 +0000 (+0000) Subject: client: Fix lsatt completer. X-Git-Tag: v0.5.6~45^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=8843e506d1af0f71c61e2c301bea9b612187e360;hp=a6749787cb2d61d0c893eda60d93cc58ef49a8b1 client: Fix lsatt completer. The lsatt command does not take any non-option arguments. So it is wrong to complete on the available attributes. --- 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,