mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-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 vim/vim#4163)a84a3dd663
vim-patch:8.1.1052: test for CTRL-C message sometimes fails Problem: test for CTRL-C message sometimes fails Solution: Make sure there are no changed buffers.553e5a5c56
vim-patch:8.1.1053: warning for missing return statement Problem: Warning for missing return statement. (Dominique Pelle) Solution: Add return statement.d6c3f1fa2b
This commit is contained in:
@@ -7465,8 +7465,12 @@ static void nv_esc(cmdarg_T *cap)
|
||||
&& cmdwin_type == 0
|
||||
&& !VIsual_active
|
||||
&& no_reason) {
|
||||
MSG(_("Type :qa! and press <Enter> to abandon all changes"
|
||||
" and exit Nvim"));
|
||||
if (anyBufIsChanged()) {
|
||||
MSG(_("Type :qa! and press <Enter> to abandon all changes"
|
||||
" and exit Nvim"));
|
||||
} else {
|
||||
MSG(_("Type :qa and press <Enter> to exit Nvim"));
|
||||
}
|
||||
}
|
||||
|
||||
/* Don't reset "restart_edit" when 'insertmode' is set, it won't be
|
||||
|
Reference in New Issue
Block a user