mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
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.
28a8193e31
This commit is contained in:

committed by
Justin M. Keyes

parent
367343ae6e
commit
8192267dea
@@ -7464,8 +7464,10 @@ static void nv_esc(cmdarg_T *cap)
|
|||||||
if (restart_edit == 0
|
if (restart_edit == 0
|
||||||
&& cmdwin_type == 0
|
&& cmdwin_type == 0
|
||||||
&& !VIsual_active
|
&& !VIsual_active
|
||||||
&& no_reason)
|
&& no_reason) {
|
||||||
MSG(_("Type :quit<Enter> to exit Nvim"));
|
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
|
/* Don't reset "restart_edit" when 'insertmode' is set, it won't be
|
||||||
* set again below when halfway through a mapping. */
|
* set again below when halfway through a mapping. */
|
||||||
|
@@ -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)
|
||||||
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)
|
||||||
end)
|
end)
|
||||||
|
@@ -494,7 +494,7 @@ describe('Command-line coloring', function()
|
|||||||
{EOB:~ }|
|
{EOB:~ }|
|
||||||
{EOB:~ }|
|
{EOB:~ }|
|
||||||
{EOB:~ }|
|
{EOB:~ }|
|
||||||
Type :quit<Enter> to exit Nvim |
|
Type :qa! and pr...nges and exit Nvim |
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
it('works fine with NUL, NL, CR', function()
|
it('works fine with NUL, NL, CR', function()
|
||||||
|
Reference in New Issue
Block a user