mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Sync OpenBSD patchset 588:
Add server options to completion as well.
This commit is contained in:
parent
90d40e27da
commit
6f578a434b
6
status.c
6
status.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: status.c,v 1.140 2009-12-04 22:14:47 tcunha Exp $ */
|
/* $Id: status.c,v 1.141 2009-12-16 01:10:36 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -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…
x
Reference in New Issue
Block a user