From: Bram Moolenaar Date: Mon, 26 Nov 2018 20:19:11 +0000 (+0100) Subject: patch 8.1.0548: crash when job callback unloads a buffer X-Git-Tag: v8.1.0548 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1341024e0823d9aa9cde08d6b55e12f2d90ff778;p=vim 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(). --- diff --git a/src/ui.c b/src/ui.c index 5ae0ae38b..d341448e3 100644 --- a/src/ui.c +++ b/src/ui.c @@ -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 diff --git a/src/version.c b/src/version.c index 3207af3b4..3d4fa68df 100644 --- a/src/version.c +++ b/src/version.c @@ -792,6 +792,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 548, /**/ 547, /**/