mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
-option tab-completion didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@442 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
273688f6d7
commit
be643cb48a
@ -386,8 +386,10 @@ GList *completion_get_options(const char *cmd, const char *option)
|
||||
list = NULL;
|
||||
len = strlen(option);
|
||||
for (tmp = rec->options; *tmp != NULL; tmp++) {
|
||||
if (len == 0 || g_strncasecmp(*tmp, option, len) == 0)
|
||||
list = g_list_append(list, g_strconcat("-", *tmp + iscmdtype(**tmp), NULL));
|
||||
const char *optname = *tmp + iscmdtype(**tmp);
|
||||
|
||||
if (len == 0 || g_strncasecmp(optname, option, len) == 0)
|
||||
list = g_list_append(list, g_strconcat("-", optname, NULL));
|
||||
}
|
||||
|
||||
return list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user