From fba14ce3216a4da14906688b15059791a732a8f3 Mon Sep 17 00:00:00 2001 From: akhmed-codes Date: Mon, 20 Sep 2021 14:42:06 +0530 Subject: [PATCH] fixed 'statement/declaration issue on manual compilation --- src/editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index 0ed7765..e950e54 100644 --- a/src/editor.c +++ b/src/editor.c @@ -717,6 +717,7 @@ void editor_process_keypress() // "ctrl + s" to save the buffer to disk case CTRL_KEY('s'): + { bool save_sucess = editor_save(); if (save_sucess) @@ -728,7 +729,8 @@ void editor_process_keypress() else editor_set_status_message("Can't save !"); break; - + } + // Navigation keys case ARROW_LEFT: case ARROW_RIGHT: