]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audioc.c
Trivial: Rename completion_result variables.
[paraslash.git] / audioc.c
index 77a0539d2e4513a2e9cc3f926e303f264d08d3b8..e1a225d77f39917b6eaa2836343f6fdb8a648d05 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -95,9 +95,15 @@ I9E_DUMMY_COMPLETER(tasks);
 I9E_DUMMY_COMPLETER(term);
 
 static void help_completer(struct i9e_completion_info *ci,
-               struct i9e_completion_result *result)
+               struct i9e_completion_result *cr)
 {
-       result->matches = i9e_complete_commands(ci->word, audiod_completers);
+       char *opts[] = {LSG_AUDIOD_CMD_HELP_OPTS, NULL};
+
+       if (ci->word[0] == '-') {
+               i9e_complete_option(opts, ci, cr);
+               return;
+       }
+       cr->matches = i9e_complete_commands(ci->word, audiod_completers);
 }
 
 static void version_completer(struct i9e_completion_info *ci,