mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00

committed by
Justin M. Keyes

parent
1e7d5e8cdf
commit
1e71978cf0
@@ -92,6 +92,8 @@ return {
|
||||
'VimLeave', -- before exiting Vim
|
||||
'VimLeavePre', -- before exiting Vim and writing ShaDa file
|
||||
'VimResized', -- after Vim window was resized
|
||||
'VimResume', -- after Nvim is resumed
|
||||
'VimSuspend', -- before Nvim is suspended
|
||||
'WinNew', -- when entering a new window
|
||||
'WinEnter', -- after entering a window
|
||||
'WinLeave', -- before leaving a window
|
||||
|
@@ -6300,15 +6300,18 @@ static void ex_stop(exarg_T *eap)
|
||||
if (!eap->forceit) {
|
||||
autowrite_all();
|
||||
}
|
||||
apply_autocmds(EVENT_VIMSUSPEND, NULL, NULL, false, NULL);
|
||||
ui_cursor_goto((int)Rows - 1, 0);
|
||||
ui_linefeed();
|
||||
ui_flush();
|
||||
ui_call_suspend(); // call machine specific function
|
||||
|
||||
ui_flush();
|
||||
maketitle();
|
||||
resettitle(); // force updating the title
|
||||
redraw_later_clear();
|
||||
ui_refresh(); // may have resized window
|
||||
apply_autocmds(EVENT_VIMRESUME, NULL, NULL, false, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user