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