diff src/normal.c @ 16089:4411c38f3d16 v8.1.1049

patch 8.1.1049: when user tries to exit with CTRL-C message is confusing commit https://github.com/vim/vim/commit/a84a3dd6635fcd2e07f510cba6a999585dcc381a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 25 22:21:24 2019 +0100 patch 8.1.1049: when user tries to exit with CTRL-C message is confusing Problem: When user tries to exit with CTRL-C message is confusing. Solution: Only mention ":qa!" when there is a changed buffer. (closes https://github.com/vim/vim/issues/4163)
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Mar 2019 22:30:05 +0100
parents 78faa25f9698
children cd5c83115ec6
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -8886,7 +8886,12 @@ nv_esc(cmdarg_T *cap)
 #endif
 		&& !VIsual_active
 		&& no_reason)
-	    msg(_("Type  :qa!  and press <Enter> to abandon all changes and exit Vim"));
+	{
+	    if (anyBufIsChanged())
+		msg(_("Type  :qa!  and press <Enter> to abandon all changes and exit Vim"));
+	    else
+		msg(_("Type  :qa  and press <Enter> to exit Vim"));
+	}
 
 	/* Don't reset "restart_edit" when 'insertmode' is set, it won't be
 	 * set again below when halfway a mapping. */