From a1cdb80a68ed8821c2ed9f22f520cc4e6df8a626 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Tue, 11 Feb 2025 14:38:35 -0500 Subject: add api method to enable/disable inline suggestions --- src/lush.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lush.c') 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) -- cgit v1.2.3-59-g8ed1b