summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordbivolaru <dbivolaru@jacobs-alumni.de>2022-01-23 16:41:14 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-23 16:41:14 +0000
commit79a6e25b79cdb35e00d8b364516103eb358d8cc7 (patch)
tree4e5dcdb06fb86f9f7f09d9d0e8f9e8a9aaf7e40f
parentabe628e1bd92ecb85a526348f376891d56bf3ea8 (diff)
downloadvim-git-79a6e25b79cdb35e00d8b364516103eb358d8cc7.tar.gz
patch 8.2.4195: resizing terminal may cause to behave like CTRL-Zv8.2.4195
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)
-rw-r--r--src/os_unix.c4
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 1 deletions
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
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4195,
+/**/
4194,
/**/
4193,