diff options
| author | 2025-02-11 14:38:35 -0500 | |
|---|---|---|
| committer | 2025-02-11 14:38:35 -0500 | |
| commit | a1cdb80a68ed8821c2ed9f22f520cc4e6df8a626 (patch) | |
| tree | ebe6869df98e954b9453f5d2c7b0f5aee18fa3a2 /src/lush.c | |
| parent | v0.3.0 (diff) | |
add api method to enable/disable inline suggestions
Diffstat (limited to 'src/lush.c')
| -rw-r--r-- | src/lush.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
