Skip to content

Commit

Permalink
patch 8.1.0548: crash when job callback unloads a buffer
Browse files Browse the repository at this point in the history
Problem:    Crash when job callback unloads a buffer. (James McCoy)
Solution:   Don't round up the wait time to 10 msec in ui_inchar().
  • Loading branch information
brammool committed Nov 26, 2018
1 parent 3067a4d commit 1341024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui.c
Expand Up @@ -154,8 +154,7 @@ ui_inchar(
static int count = 0;

# ifndef NO_CONSOLE
retval = mch_inchar(buf, maxlen, (wtime >= 0 && wtime < 10)
? 10L : wtime, tb_change_cnt);
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0)
goto theend;
# endif
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -792,6 +792,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
548,
/**/
547,
/**/
Expand Down

0 comments on commit 1341024

Please sign in to comment.