mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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:
parent
81afe701a2
commit
d1e0a0f44f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user