To: vim_dev@googlegroups.com Subject: Patch 8.2.4195 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.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) Files: src/os_unix.c *** ../vim-8.2.4194/src/os_unix.c 2022-01-02 19:25:22.850078488 +0000 --- src/os_unix.c 2022-01-23 16:40:49.836380083 +0000 *************** *** 868,877 **** signal(SIGTSTP, ignore_sigtstp ? SIG_IGN : SIG_DFL); raise(sigarg); } // this is not required on all systems, but it doesn't hurt anybody signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp); - got_tstp = TRUE; SIGRETURN; } #endif --- 868,878 ---- 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); SIGRETURN; } #endif *************** *** 6414,6419 **** --- 6415,6421 ---- if (got_tstp && !in_mch_suspend) { exarg_T ea; + ea.forceit = TRUE; ex_stop(&ea); got_tstp = FALSE; *** ../vim-8.2.4194/src/version.c 2022-01-23 16:25:13.939411326 +0000 --- src/version.c 2022-01-23 16:38:48.146851636 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4195, /**/ -- BRIDGEKEEPER: What is your favorite colour? GAWAIN: Blue ... No yelloooooww! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///