]> granicus.if.org Git - vim/commitdiff
patch 8.1.0548: crash when job callback unloads a buffer v8.1.0548
authorBram Moolenaar <Bram@vim.org>
Mon, 26 Nov 2018 20:19:11 +0000 (21:19 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Nov 2018 20:19:11 +0000 (21:19 +0100)
Problem:    Crash when job callback unloads a buffer. (James McCoy)
Solution:   Don't round up the wait time to 10 msec in ui_inchar().

src/ui.c
src/version.c

index 5ae0ae38b7f6cd781355bf7c76c0e6420024a50e..d341448e3b2d23b5d6fecca51d532847204f404f 100644 (file)
--- 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
index 3207af3b4e9d6da04d140d0e4a9f9f844649de27..3d4fa68df0cd6d46755476f6d3e589e08b0087fc 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    548,
 /**/
     547,
 /**/