aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-17 06:51:03 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-17 12:51:03 +0200
commit8192267deacdf958848324f6b7f99e72551c56e6 (patch)
treee7ca59a9efb163940c554c7f8a16d0123d848f34 /src
parent367343ae6e1e269f49ea29ac767628f9e4e825ac (diff)
downloadrneovim-8192267deacdf958848324f6b7f99e72551c56e6.tar.gz
rneovim-8192267deacdf958848324f6b7f99e72551c56e6.tar.bz2
rneovim-8192267deacdf958848324f6b7f99e72551c56e6.zip
vim-patch:8.0.0609: some people still don't know how to quit (#8571)
Problem: For some people the hint about quitting is not sufficient. Solution: Put <Enter> separately. Also use ":qa!" to get out even when there are changes. https://github.com/vim/vim/commit/28a8193e3113f676f89fb6312b099d849df881d3
Diffstat (limited to 'src')
-rw-r--r--src/nvim/normal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 6d3ffab030..b959ea08f3 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -7464,8 +7464,10 @@ static void nv_esc(cmdarg_T *cap)
if (restart_edit == 0
&& cmdwin_type == 0
&& !VIsual_active
- && no_reason)
- MSG(_("Type :quit<Enter> to exit Nvim"));
+ && no_reason) {
+ MSG(_("Type :qa! and press <Enter> to abandon all changes"
+ " and exit Nvim"));
+ }
/* Don't reset "restart_edit" when 'insertmode' is set, it won't be
* set again below when halfway through a mapping. */