# HG changeset patch # User Bram Moolenaar # Date 1642956303 -3600 # Node ID c3d0f82f67d5d8705d9e26ef3a87c72b45cdf285 # Parent 6782ee766b6c0d8cf9881df22119b6155b6d4ee4 patch 8.2.4195: resizing terminal may cause to behave like CTRL-Z Commit: https://github.com/vim/vim/commit/79a6e25b79cdb35e00d8b364516103eb358d8cc7 Author: dbivolaru Date: Sun Jan 23 16:41:14 2022 +0000 patch 8.2.4195: resizing terminal may cause to behave like CTRL-Z Problem: Resizing terminal may cause to behave like CTRL-Z. Solution: Set "got_tstp" only when in_mch_suspend is set. (Dorian Bivolaru, closes #9602, closes #9586) diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -868,10 +868,11 @@ sig_tstp SIGDEFARG(sigarg) signal(SIGTSTP, ignore_sigtstp ? SIG_IGN : SIG_DFL); raise(sigarg); } + else + got_tstp = TRUE; // this is not required on all systems, but it doesn't hurt anybody signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp); - got_tstp = TRUE; SIGRETURN; } #endif @@ -6414,6 +6415,7 @@ select_eintr: if (got_tstp && !in_mch_suspend) { exarg_T ea; + ea.forceit = TRUE; ex_stop(&ea); got_tstp = FALSE; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4195, +/**/ 4194, /**/ 4193,