Skip to content

Commit 1341024

Browse files
committed
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().
1 parent 3067a4d commit 1341024

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/ui.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ ui_inchar(
154154
static int count = 0;
155155

156156
# ifndef NO_CONSOLE
157-
retval = mch_inchar(buf, maxlen, (wtime >= 0 && wtime < 10)
158-
? 10L : wtime, tb_change_cnt);
157+
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
159158
if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0)
160159
goto theend;
161160
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ static char *(features[]) =
792792

793793
static int included_patches[] =
794794
{ /* Add new patch number below this line */
795+
/**/
796+
548,
795797
/**/
796798
547,
797799
/**/

0 commit comments

Comments
 (0)