mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-25 16:19:02 +01:00
Add server options to completion as well.
This commit is contained in:
parent
30962cb200
commit
84d2e6c8a0
4
status.c
4
status.c
@ -1130,6 +1130,10 @@ status_prompt_complete(const char *s)
|
|||||||
if (strncmp((*cmdent)->name, s, strlen(s)) == 0)
|
if (strncmp((*cmdent)->name, s, strlen(s)) == 0)
|
||||||
ARRAY_ADD(&list, (*cmdent)->name);
|
ARRAY_ADD(&list, (*cmdent)->name);
|
||||||
}
|
}
|
||||||
|
for (entry = set_option_table; entry->name != NULL; entry++) {
|
||||||
|
if (strncmp(entry->name, s, strlen(s)) == 0)
|
||||||
|
ARRAY_ADD(&list, entry->name);
|
||||||
|
}
|
||||||
for (entry = set_session_option_table; entry->name != NULL; entry++) {
|
for (entry = set_session_option_table; entry->name != NULL; entry++) {
|
||||||
if (strncmp(entry->name, s, strlen(s)) == 0)
|
if (strncmp(entry->name, s, strlen(s)) == 0)
|
||||||
ARRAY_ADD(&list, entry->name);
|
ARRAY_ADD(&list, entry->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user