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