changeset 27334:c3d0f82f67d5 v8.2.4195

patch 8.2.4195: resizing terminal may cause to behave like CTRL-Z Commit: https://github.com/vim/vim/commit/79a6e25b79cdb35e00d8b364516103eb358d8cc7 Author: dbivolaru <dbivolaru@jacobs-alumni.de> 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Jan 2022 17:45:03 +0100
parents 6782ee766b6c
children 5d7f64c1328f
files src/os_unix.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,