diff options
-rw-r--r-- | src/nvim/normal.c | 6 | ||||
-rw-r--r-- | test/functional/eval/system_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 2 |
3 files changed, 7 insertions, 5 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. */ diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua index 23cea4c038..5e12b6a6a4 100644 --- a/test/functional/eval/system_spec.lua +++ b/test/functional/eval/system_spec.lua @@ -241,7 +241,7 @@ describe('system()', function() ~ | ~ | ~ | - Type :quit<Enter> to exit Nvim | + Type :qa! and press <E...all changes and exit Nvim | ]]) end) end) @@ -448,7 +448,7 @@ describe('systemlist()', function() ~ | ~ | ~ | - Type :quit<Enter> to exit Nvim | + Type :qa! and press <E...all changes and exit Nvim | ]]) end) end) diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index 3c316d1cfa..5d9fffdf23 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -494,7 +494,7 @@ describe('Command-line coloring', function() {EOB:~ }| {EOB:~ }| {EOB:~ }| - Type :quit<Enter> to exit Nvim | + Type :qa! and pr...nges and exit Nvim | ]]) end) it('works fine with NUL, NL, CR', function() |