To: vim_dev@googlegroups.com Subject: Patch 8.2.4201 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4201 Problem: When using the GUI CTRL-Z does not stop gvim. Solution: When using the GUI set SIGTSTP to SIG_DFL. (Andrew Maltsev, closes #9570) Files: src/os_unix.c *** ../vim-8.2.4200/src/os_unix.c 2022-01-23 16:41:10.643957425 +0000 --- src/os_unix.c 2022-01-24 12:17:21.549452635 +0000 *************** *** 1378,1384 **** #ifdef SIGTSTP // See mch_init() for the conditions under which we ignore SIGTSTP. ! signal(SIGTSTP, ignore_sigtstp ? SIG_IGN : (RETSIGTYPE (*)())sig_tstp); #endif #if defined(SIGCONT) signal(SIGCONT, sigcont_handler); --- 1378,1391 ---- #ifdef SIGTSTP // See mch_init() for the conditions under which we ignore SIGTSTP. ! // In the GUI default TSTP processing is OK. ! // Checking both gui.in_use and gui.starting because gui.in_use is not set ! // at this point (set after menus are displayed), but gui.starting is set. ! signal(SIGTSTP, ignore_sigtstp ? SIG_IGN ! # ifdef FEAT_GUI ! : gui.in_use || gui.starting ? SIG_DFL ! # endif ! : (RETSIGTYPE (*)())sig_tstp); #endif #if defined(SIGCONT) signal(SIGCONT, sigcont_handler); *** ../vim-8.2.4200/src/version.c 2022-01-24 11:40:33.944693856 +0000 --- src/version.c 2022-01-24 12:19:29.190938389 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4201, /**/ -- It is illegal for anyone to try and stop a child from playfully jumping over puddles of water. [real standing law in California, United States of America] /// 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 ///