From 88417ff4afe6050861c1d9e487d4eb4e7b53005b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 7 Apr 2025 13:07:13 +0200 Subject: [PATCH] client: Fix completion for the select subcommand. We missed to complete the -v option that was added recently. Fixes: 1f31fcdd74ab1aab01cbc70942f9d69bb779156a --- client.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5