ae44034
To: vim_dev@googlegroups.com
ae44034
Subject: Patch 7.3.137
ae44034
Fcc: outbox
ae44034
From: Bram Moolenaar <Bram@moolenaar.net>
ae44034
Mime-Version: 1.0
ae44034
Content-Type: text/plain; charset=UTF-8
ae44034
Content-Transfer-Encoding: 8bit
ae44034
------------
ae44034
ae44034
Patch 7.3.137 (after 7.3.091)
ae44034
Problem:    When 'lazyredraw' is set the screen may not be updated. (Ivan
ae44034
	    Krasilnikov)
ae44034
Solution:   Call update_screen() before waiting for input.
ae44034
Files:	    src/misc1.c, src/getchar.c
ae44034
ae44034
ae44034
*** ../vim-7.3.136/src/misc1.c	2011-01-22 00:11:42.000000000 +0100
ae44034
--- src/misc1.c	2011-03-03 14:02:02.000000000 +0100
ae44034
***************
ae44034
*** 3115,3121 ****
ae44034
--- 3115,3129 ----
ae44034
  	    continue;
ae44034
  
ae44034
  	if (n == KEYLEN_REMOVED)  /* key code removed */
ae44034
+ 	{
ae44034
+ 	    if (must_redraw)
ae44034
+ 	    {
ae44034
+ 		/* Redrawing was postponed, do it now. */
ae44034
+ 		update_screen(0);
ae44034
+ 		setcursor(); /* put cursor back where it belongs */
ae44034
+ 	    }
ae44034
  	    continue;
ae44034
+ 	}
ae44034
  	if (n > 0)		/* found a termcode: adjust length */
ae44034
  	    len = n;
ae44034
  	if (len == 0)		/* nothing typed yet */
ae44034
*** ../vim-7.3.136/src/getchar.c	2010-12-30 12:30:26.000000000 +0100
ae44034
--- src/getchar.c	2011-03-03 14:01:26.000000000 +0100
ae44034
***************
ae44034
*** 2710,2717 ****
ae44034
  		 * are still available.  But when those available characters
ae44034
  		 * are part of a mapping, and we are going to do a blocking
ae44034
  		 * wait here.  Need to update the screen to display the
ae44034
! 		 * changed text so far. */
ae44034
! 		if ((State & INSERT) && advance && must_redraw != 0)
ae44034
  		{
ae44034
  		    update_screen(0);
ae44034
  		    setcursor(); /* put cursor back where it belongs */
ae44034
--- 2710,2719 ----
ae44034
  		 * are still available.  But when those available characters
ae44034
  		 * are part of a mapping, and we are going to do a blocking
ae44034
  		 * wait here.  Need to update the screen to display the
ae44034
! 		 * changed text so far. Also for when 'lazyredraw' is set and
ae44034
! 		 * redrawing was postponed because there was something in the
ae44034
! 		 * input buffer (e.g., termresponse). */
ae44034
! 		if (((State & INSERT) || p_lz) && advance && must_redraw != 0)
ae44034
  		{
ae44034
  		    update_screen(0);
ae44034
  		    setcursor(); /* put cursor back where it belongs */
ae44034
*** ../vim-7.3.136/src/version.c	2011-03-03 15:01:25.000000000 +0100
ae44034
--- src/version.c	2011-03-03 15:02:45.000000000 +0100
ae44034
***************
ae44034
*** 716,717 ****
ae44034
--- 716,719 ----
ae44034
  {   /* Add new patch number below this line */
ae44034
+ /**/
ae44034
+     137,
ae44034
  /**/
ae44034
ae44034
-- 
ae44034
ARTHUR:        What?
ae44034
BLACK KNIGHT:  None shall pass.
ae44034
ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
ae44034
               this bridge.
ae44034
BLACK KNIGHT:  Then you shall die.
ae44034
                                  The Quest for the Holy Grail (Monty Python)
ae44034
ae44034
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
ae44034
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
ae44034
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
ae44034
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///