]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
client: Fix completion for the select subcommand.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 7 Apr 2025 11:07:13 +0000 (13:07 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 23 Apr 2025 22:01:49 +0000 (00:01 +0200)
We missed to complete the -v option that was added recently.

Fixes: 1f31fcdd74ab1aab01cbc70942f9d69bb779156a
client.c

index d2d11fd34344d5b4f5186daf568850fe153cbacb..14b98b76b7c3c29ab8175eeba776a85048b60a1f 100644 (file)
--- a/client.c
+++ b/client.c
@@ -422,9 +422,12 @@ static void cpsi_completer(struct i9e_completion_info *ci,
 static void select_completer(struct i9e_completion_info *ci,
                struct i9e_completion_result *cr)
 {
+       char *opts[] = {LSG_SERVER_CMD_SELECT_OPTS, NULL};
        char *mood_buf, *pl_buf, **moods, **playlists, **mops;
        int num_moods, num_pl, i, n, ret;
 
+       if (ci->word[0] == '-')
+               return i9e_complete_option(opts, ci, cr);
        ret = execute_client_command("lsmood", &mood_buf);
        if (ret < 0)
                return;