summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleo-arch <leonardoabramovich2@gmail.com>2024-05-05 02:09:33 -0300
committerleo-arch <leonardoabramovich2@gmail.com>2024-05-05 02:09:33 -0300
commit63747585373cb4fef1883961ce511172dd0ba4bf (patch)
tree37582f58b2902acbc4b346c6dec293ccb4165cb5
parent6e21f0733b2c061a483bf164568cbeeec07b1768 (diff)
Fix compilation warning with _NO_SUGGESTIONSHEADmaster
-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('!');