mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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)
This commit is contained in:
parent
abe628e1bd
commit
79a6e25b79
@ -868,10 +868,11 @@ sig_tstp SIGDEFARG(sigarg)
|
|||||||
signal(SIGTSTP, ignore_sigtstp ? SIG_IGN : SIG_DFL);
|
signal(SIGTSTP, ignore_sigtstp ? SIG_IGN : SIG_DFL);
|
||||||
raise(sigarg);
|
raise(sigarg);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
got_tstp = TRUE;
|
||||||
|
|
||||||
// this is not required on all systems, but it doesn't hurt anybody
|
// this is not required on all systems, but it doesn't hurt anybody
|
||||||
signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
|
signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
|
||||||
got_tstp = TRUE;
|
|
||||||
SIGRETURN;
|
SIGRETURN;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -6414,6 +6415,7 @@ select_eintr:
|
|||||||
if (got_tstp && !in_mch_suspend)
|
if (got_tstp && !in_mch_suspend)
|
||||||
{
|
{
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
|
||||||
ea.forceit = TRUE;
|
ea.forceit = TRUE;
|
||||||
ex_stop(&ea);
|
ex_stop(&ea);
|
||||||
got_tstp = FALSE;
|
got_tstp = FALSE;
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4195,
|
||||||
/**/
|
/**/
|
||||||
4194,
|
4194,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user