diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-28 11:12:03 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-28 11:12:03 +0000 |
commit | d1e0a0f44f1d4742daa4ebd3a29e563bd532129f (patch) | |
tree | 84e460e66841ad3ff6dfe4298680f141bfbe0e92 /src | |
parent | 81afe701a2918c84231ec97b8f19cbb817d72a09 (diff) | |
download | irssi-d1e0a0f44f1d4742daa4ebd3a29e563bd532129f.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/completion.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |