summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.337
blob: a2aeb04fef8a5ce30fa86e682c3faa0fe3654c5b (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
54
55
56
57
58
To: vim_dev@googlegroups.com
Subject: Patch 7.3.337
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.337 (after 7.3.295)
Problem:    Screen doesn't update after resizing the xterm until a character
	    is typed.
Solution:   When the select call is interrupted check do_resize. (Taylor
	    Hedberg)
Files:	    src/os_unix.c


*** ../vim-7.3.336/src/os_unix.c	2011-09-08 23:24:09.000000000 +0200
--- src/os_unix.c	2011-10-12 20:57:15.000000000 +0200
***************
*** 5146,5156 ****
--- 5146,5163 ----
  # endif
  # ifdef EINTR
  	if (ret == -1 && errno == EINTR)
+ 	{
+ 	    /* Check whether window has been resized, EINTR may be caused by
+ 	     * SIGWINCH. */
+ 	    if (do_resize)
+ 		handle_resize();
+ 
  	    /* Interrupted by a signal, need to try again.  We ignore msec
  	     * here, because we do want to check even after a timeout if
  	     * characters are available.  Needed for reading output of an
  	     * external command after the process has finished. */
  	    goto select_eintr;
+ 	}
  # endif
  # ifdef __TANDEM
  	if (ret == -1 && errno == ENOTSUP)
*** ../vim-7.3.336/src/version.c	2011-10-12 19:53:31.000000000 +0200
--- src/version.c	2011-10-12 21:03:47.000000000 +0200
***************
*** 711,712 ****
--- 711,714 ----
  {   /* Add new patch number below this line */
+ /**/
+     337,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
64. The remote to the T.V. is missing...and you don't even care.

 /// 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    ///