diff options
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); |