From: dbivolaru Date: Sun, 23 Jan 2022 16:41:14 +0000 (+0000) Subject: patch 8.2.4195: resizing terminal may cause to behave like CTRL-Z X-Git-Tag: v8.2.4195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a6e25b79cdb35e00d8b364516103eb358d8cc7;p=vim 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 index 993068042..0af6016bb 100644 --- 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 index 5eacff8af..3e693de1b 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4195, /**/ 4194, /**/