From: Andre Noll Date: Mon, 7 Apr 2025 11:07:13 +0000 (+0200) Subject: client: Fix completion for the select subcommand. X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=88417ff4afe6050861c1d9e487d4eb4e7b53005b;p=paraslash.git client: Fix completion for the select subcommand. We missed to complete the -v option that was added recently. Fixes: 1f31fcdd74ab1aab01cbc70942f9d69bb779156a --- diff --git a/client.c b/client.c index d2d11fd3..14b98b76 100644 --- 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;