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:
Jan Edmund Lazo
2018-06-17 06:51:03 -04:00
committed by Justin M. Keyes
parent 367343ae6e
commit 8192267dea
3 changed files with 7 additions and 5 deletions

View File

@@ -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. */

View File

@@ -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)

View File

@@ -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()