mirror of
https://github.com/vim/vim.git
synced 2025-09-01 21:03:39 -04:00
patch 8.1.0548: crash when job callback unloads a buffer
Problem: Crash when job callback unloads a buffer. (James McCoy) Solution: Don't round up the wait time to 10 msec in ui_inchar().
This commit is contained in:
parent
3067a4dd0d
commit
1341024e08
3
src/ui.c
3
src/ui.c
@ -154,8 +154,7 @@ ui_inchar(
|
|||||||
static int count = 0;
|
static int count = 0;
|
||||||
|
|
||||||
# ifndef NO_CONSOLE
|
# ifndef NO_CONSOLE
|
||||||
retval = mch_inchar(buf, maxlen, (wtime >= 0 && wtime < 10)
|
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
|
||||||
? 10L : wtime, tb_change_cnt);
|
|
||||||
if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0)
|
if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0)
|
||||||
goto theend;
|
goto theend;
|
||||||
# endif
|
# endif
|
||||||
|
@ -792,6 +792,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 */
|
||||||
|
/**/
|
||||||
|
548,
|
||||||
/**/
|
/**/
|
||||||
547,
|
547,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user