summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/keybinds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keybinds.c b/src/keybinds.c
index c12f1bfb..2f066324 100644
--- a/src/keybinds.c
+++ b/src/keybinds.c
@@ -2200,8 +2200,10 @@ rl_cmdhist_tab(int count, int key)
rl_insert_text("!");
rl_point = rl_end;
+#ifndef _NO_SUGGESTIONS
if (suggestion_buf)
clear_suggestion(CS_FREEBUF);
+#endif /* _NO_SUGGESTIONS */
tab_complete('!');