Skip to content

Commit

Permalink
fixed 'statement/declaration issue on manual compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
k10231 committed Sep 20, 2021
1 parent ff83b44 commit fba14ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit fba14ce

Please sign in to comment.