]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.337 v7.3.337
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2011 19:04:20 +0000 (21:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2011 19:04:20 +0000 (21:04 +0200)
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)

src/os_unix.c
src/version.c

index 018c49f98a44d38f59bdf5a8abf50e222af05517..48176e1803e2f5570df6f317c0251612894b428f 100644 (file)
@@ -5146,11 +5146,18 @@ select_eintr:
 # 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)
index 48d2d39677770ab8fb0acab0b17ac1f1d963fc7c..a77a78d88dea367f408725910165581d91e63d89 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    337,
 /**/
     336,
 /**/