changeset 15075:fd9c4b1a71aa v8.1.0548

patch 8.1.0548: crash when job callback unloads a buffer commit https://github.com/vim/vim/commit/1341024e0823d9aa9cde08d6b55e12f2d90ff778 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 26 21:19:11 2018 +0100 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().
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Nov 2018 21:30:07 +0100
parents 9c1c1c332df0
children 7343c39b290e
files src/ui.c src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    548,
+/**/
     547,
 /**/
     546,