1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Check that word isn't empty instead of just assuming it isn't. This one

probably caused several completion problems.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1771 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-08-28 11:12:03 +00:00 committed by cras
parent 81afe701a2
commit d1e0a0f44f

View File

@ -552,7 +552,7 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
/* command completion? */ /* command completion? */
cmdchars = settings_get_str("cmdchars"); cmdchars = settings_get_str("cmdchars");
if (strchr(cmdchars, *word) && *linestart == '\0') { if (*word != '\0' && *linestart == '\0' && strchr(cmdchars, *word)) {
/* complete /command */ /* complete /command */
*list = completion_get_commands(word+1, *word); *list = completion_get_commands(word+1, *word);