1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04: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:
Timo Sirainen 2000-07-09 13:28:14 +00:00 committed by cras
parent 273688f6d7
commit be643cb48a

View File

@ -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;