aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lush.c b/src/lush.c
index 2925272..f815fa5 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -617,7 +617,8 @@ static void reprint_buffer(char *buffer, int *last_lines, int *pos,
printf("\r\033[K");
printf("%s ", prompt);
printf("%s", buffer);
- printf("\033[0;33m%s\033[0m ", suggestion);
+ if (suggestion_enable)
+ printf("\033[0;33m%s\033[0m ", suggestion);
// move cursor up and to the right to be in correct position
if (cursor_pos > 0)