Skip to content

Commit

Permalink
Fix compilation warning with _NO_SUGGESTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-arch committed May 5, 2024
1 parent 6e21f07 commit 6374758
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/keybinds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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('!');

Expand Down

0 comments on commit 6374758

Please sign in to comment.