Diff between 8891babcf41962c11fc19bc240ddbb89cc6e6c99 and 64e7ce42b19122f0ad47a4a32e6311bdffb38200

Changed Files

File Additions Deletions Status
src/shared/shell.c +2 -3 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 21e8b50..cbb9b8b 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -903,6 +903,8 @@ static char **shell_completion(const char *text, int start, int end)
 {
 	char **matches = NULL;
 
+	rl_attempted_completion_over = 1;
+
 	if (!data.menu)
 		return NULL;
 
@@ -925,9 +927,6 @@ static char **shell_completion(const char *text, int start, int end)
 		matches = rl_completion_matches(text, cmd_generator);
 	}
 
-	if (!matches)
-		rl_attempted_completion_over = 1;
-
 	return matches;
 }