Fixed typo in the warning message when trying to quit. (Added an 's' when quit_times > 1)
This commit is contained in:
1 parent
02c9cb6f6f
commit
0789ab8b62
1 file changed
+1
-1
@@ -1525,7 +1525,7 @@ void editorProcessKeypress() {
|
||||
break;
|
||||
case CTRL_KEY('q'):
|
||||
if (ec.dirty && quit_times > 0) {
|
||||
editorSetStatusMessage("Warning! File has unsaved changes. Press Ctrl-Q %d more time to quit", quit_times);
|
||||
editorSetStatusMessage("Warning! File has unsaved changes. Press Ctrl-Q %d more time%s to quit", quit_times, quit_times > 1 ? "s" : "");
|
||||
quit_times--;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user