1
0
forked from aniani/vim

patch 8.2.2128: there is no way to do something on CTRL-Z

Problem:    There is no way to do something on CTRL-Z.
Solution:   Add VimSuspend and VimResume autocommand events. (closes #7450)
This commit is contained in:
Bram Moolenaar
2020-12-11 19:30:34 +01:00
parent 1b884a0053
commit 100118c73a
7 changed files with 67 additions and 1 deletions

View File

@@ -5864,6 +5864,7 @@ ex_stop(exarg_T *eap)
{
if (!eap->forceit)
autowrite_all();
apply_autocmds(EVENT_VIMSUSPEND, NULL, NULL, FALSE, NULL);
windgoto((int)Rows - 1, 0);
out_char('\n');
out_flush();
@@ -5881,6 +5882,7 @@ ex_stop(exarg_T *eap)
scroll_start(); // scroll screen before redrawing
redraw_later_clear();
shell_resized(); // may have resized window
apply_autocmds(EVENT_VIMRESUME, NULL, NULL, FALSE, NULL);
}
}