From 0789ab8b626b8f8dbca4f9de2e582252c5b3030c Mon Sep 17 00:00:00 2001 From: GrenderG Date: Tue, 11 Apr 2017 03:13:17 +0200 Subject: [PATCH] Fixed typo in the warning message when trying to quit. (Added an 's' when quit_times > 1) --- tte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tte.c b/tte.c index 4363a82..7d7064b 100644 --- a/tte.c +++ b/tte.c @@ -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; }