mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.0016: possible crash in term_wait()
Problem: Possible crash in term_wait(). (Dominique Pelle) Solution: Check for a valid buffer after ui_delay(). (closes #2944)
This commit is contained in:
parent
05af9a4191
commit
d45aa55d42
@ -5264,11 +5264,11 @@ f_term_wait(typval_T *argvars, typval_T *rettv UNUSED)
|
|||||||
{
|
{
|
||||||
mch_check_messages();
|
mch_check_messages();
|
||||||
parse_queued_messages();
|
parse_queued_messages();
|
||||||
|
ui_delay(10L, FALSE);
|
||||||
if (!buf_valid(buf))
|
if (!buf_valid(buf))
|
||||||
/* If the terminal is closed when the channel is closed the
|
/* If the terminal is closed when the channel is closed the
|
||||||
* buffer disappears. */
|
* buffer disappears. */
|
||||||
break;
|
break;
|
||||||
ui_delay(10L, FALSE);
|
|
||||||
}
|
}
|
||||||
mch_check_messages();
|
mch_check_messages();
|
||||||
parse_queued_messages();
|
parse_queued_messages();
|
||||||
|
@ -761,6 +761,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 */
|
||||||
|
/**/
|
||||||
|
16,
|
||||||
/**/
|
/**/
|
||||||
15,
|
15,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user