summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0548
blob: 905c7b713db1a1bc8a3afe907350799608d32b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0548
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
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    ///