mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Merge hooks into options and make each one an array option. This allows
multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
This commit is contained in:
2
status.c
2
status.c
@ -1323,7 +1323,7 @@ status_prompt_complete_list(u_int *size, const char *s)
|
||||
while (a != NULL) {
|
||||
value = options_array_item_value(a)->string;
|
||||
if ((cp = strchr(value, '=')) == NULL)
|
||||
goto next;
|
||||
goto next;
|
||||
valuelen = cp - value;
|
||||
if (slen > valuelen || strncmp(value, s, slen) != 0)
|
||||
goto next;
|
||||
|
Reference in New Issue
Block a user