From cbec00f522af92129d650ca5f74fa46b36d97dd0 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Thu, 31 Aug 2023 11:11:46 +0500 Subject: [PATCH] Fix small bug --- src/kilo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kilo.c b/src/kilo.c index 0a6eedf..24162dd 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -154,7 +154,7 @@ void editor_set_message(const char *fmt, ...) { void editor_redraw_screen(void) { - if (terminal_cursor_visibility(true) == -1) + if (terminal_cursor_visibility(CURSOR_HIDDEN) == -1) die("term_cursor_hidden"); @@ -172,7 +172,7 @@ void editor_redraw_screen(void) { if (terminal_set_cursor_pos(row_pos, col_pos) == -1) die("term_set_cursor_pos"); - if (terminal_cursor_visibility(false) == -1) + if (terminal_cursor_visibility(CURSOR_SHOWN) == -1) die("term_cursor_hidden"); }