To: vim_dev@googlegroups.com Subject: Patch 8.1.0548 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.0548 Problem: Crash when job callback unloads a buffer. (James McCoy) Solution: Don't round up the wait time to 10 msec in ui_inchar(). Files: src/ui.c *** ../vim-8.1.0547/src/ui.c 2018-11-20 02:42:37.111373664 +0100 --- src/ui.c 2018-11-26 20:50:54.398315964 +0100 *************** *** 154,161 **** static int count = 0; # ifndef NO_CONSOLE ! retval = mch_inchar(buf, maxlen, (wtime >= 0 && wtime < 10) ! ? 10L : wtime, tb_change_cnt); if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0) goto theend; # endif --- 154,160 ---- static int count = 0; # ifndef NO_CONSOLE ! retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt); if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0) goto theend; # endif *** ../vim-8.1.0547/src/version.c 2018-11-25 05:06:34.947950996 +0100 --- src/version.c 2018-11-26 21:18:49.601434988 +0100 *************** *** 794,795 **** --- 794,797 ---- { /* Add new patch number below this line */ + /**/ + 548, /**/ -- Men may not be seen publicly in any kind of strapless gown. [real standing law in Florida, United States of America] /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///