Skip to content

Commit

Permalink
Merge pull request #35 from akhmed-codes/master
Browse files Browse the repository at this point in the history
fixed statement/declaration issue on manual compilation
  • Loading branch information
Arsenic-ATG authored Sep 20, 2021
2 parents ff83b44 + fba14ce commit fba63c1
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 fba63c1

Please sign in to comment.