forked from PsychoticNinja/irssi
-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;
|
list = NULL;
|
||||||
len = strlen(option);
|
len = strlen(option);
|
||||||
for (tmp = rec->options; *tmp != NULL; tmp++) {
|
for (tmp = rec->options; *tmp != NULL; tmp++) {
|
||||||
if (len == 0 || g_strncasecmp(*tmp, option, len) == 0)
|
const char *optname = *tmp + iscmdtype(**tmp);
|
||||||
list = g_list_append(list, g_strconcat("-", *tmp + iscmdtype(**tmp), NULL));
|
|
||||||
|
if (len == 0 || g_strncasecmp(optname, option, len) == 0)
|
||||||
|
list = g_list_append(list, g_strconcat("-", optname, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user