diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-29 19:55:20 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-29 19:55:20 +0100 |
commit | 5af694394018940819c0734be9b5fd44df1bf857 (patch) | |
tree | de7c008f91ca6128ee1be15839f16061f3e92695 /status.c | |
parent | 7324442b42061c99182d4f864c9cde609e19858c (diff) | |
download | rtmux-5af694394018940819c0734be9b5fd44df1bf857.tar.gz rtmux-5af694394018940819c0734be9b5fd44df1bf857.tar.bz2 rtmux-5af694394018940819c0734be9b5fd44df1bf857.zip |
Complete aliases as well as commands.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |