From d1e0a0f44f1d4742daa4ebd3a29e563bd532129f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 28 Aug 2001 11:12:03 +0000 Subject: [PATCH] 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 --- src/fe-common/core/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index bc17feeb..1b7d4465 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -552,7 +552,7 @@ static void sig_complete_word(GList **list, WINDOW_REC *window, /* command completion? */ cmdchars = settings_get_str("cmdchars"); - if (strchr(cmdchars, *word) && *linestart == '\0') { + if (*word != '\0' && *linestart == '\0' && strchr(cmdchars, *word)) { /* complete /command */ *list = completion_get_commands(word+1, *word);