mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
hide the deprecated -ssl options from completion
This commit is contained in:
parent
8b7bf1f04e
commit
485ed2f52b
4 changed files with 51 additions and 16 deletions
|
|
@ -544,7 +544,11 @@ static GList *completion_get_options(const char *cmd, const char *option)
|
|||
list = NULL;
|
||||
len = strlen(option);
|
||||
for (tmp = rec->options; *tmp != NULL; tmp++) {
|
||||
const char *optname = *tmp + iscmdtype(**tmp);
|
||||
const char *optname;
|
||||
if (**tmp == '~')
|
||||
continue; /* deprecated or hidden option */
|
||||
|
||||
optname = *tmp + iscmdtype(**tmp);
|
||||
|
||||
if (len == 0 || g_ascii_strncasecmp(optname, option, len) == 0)
|
||||
list = g_list_append(list, g_strconcat("-", optname, NULL));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue