From 5af694394018940819c0734be9b5fd44df1bf857 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 29 Apr 2020 19:55:20 +0100 Subject: Complete aliases as well as commands. --- status.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/status.c b/status.c index 0acf4233..712a93df 100644 --- a/status.c +++ b/status.c @@ -1376,6 +1376,11 @@ status_prompt_complete_list(u_int *size, const char *s, int at_start) list = xreallocarray(list, (*size) + 1, sizeof *list); list[(*size)++] = xstrdup((*cmdent)->name); } + if ((*cmdent)->alias != NULL && + strncmp((*cmdent)->alias, s, slen) == 0) { + list = xreallocarray(list, (*size) + 1, sizeof *list); + list[(*size)++] = xstrdup((*cmdent)->alias); + } } o = options_get_only(global_options, "command-alias"); if (o != NULL) { -- cgit