diff options
Diffstat (limited to 'cli/src/cli-rl.c')
-rw-r--r-- | cli/src/cli-rl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c index 1bb9bf07c51..215fbebb998 100644 --- a/cli/src/cli-rl.c +++ b/cli/src/cli-rl.c @@ -295,6 +295,8 @@ cli_rl_autocomplete_prepare (struct cli_state *state, const char *text) if (!word) goto out; + if (!tokens) + return 0; matches = cli_rl_get_matches (state, word, token); state->matches = matches; |