]> granicus.if.org Git - vim/commitdiff
patch 8.2.4195: resizing terminal may cause to behave like CTRL-Z v8.2.4195
authordbivolaru <dbivolaru@jacobs-alumni.de>
Sun, 23 Jan 2022 16:41:14 +0000 (16:41 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 Jan 2022 16:41:14 +0000 (16:41 +0000)
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)

src/os_unix.c
src/version.c

index 9930680429aa6fa4a7b1756bd3c283a13797b906..0af6016bb44a2ce3b591bca1be78a94f0bb17bce 100644 (file)
@@ -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;
index 5eacff8af26d3e4e351d7e852e064dc517a2b6bd..3e693de1baf1940a03fae56bef6c9f7eec0d9775 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4195,
 /**/
     4194,
 /**/