Mercurial > vim
diff src/ex_docmd.c @ 23165:a916fca16d4b v8.2.2128
patch 8.2.2128: there is no way to do something on CTRL-Z
Commit: https://github.com/vim/vim/commit/100118c73ac068137cd298d22953896242752523
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 11 19:30:34 2020 +0100
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 https://github.com/vim/vim/issues/7450)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Dec 2020 19:45:04 +0100 |
parents | fa87b0d1277b |
children | bb7531f77529 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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); } }