diff src/getchar.c @ 2721:417c04135ca2 v7.3.137

updated for version 7.3.137 Problem: When 'lazyredraw' is set the screen may not be updated. (Ivan Krasilnikov) Solution: Call update_screen() before waiting for input.
author Bram Moolenaar <bram@vim.org>
date Thu, 03 Mar 2011 15:04:08 +0100
parents 6a2e4860134b
children 2e72d84e8965
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2710,8 +2710,10 @@ vgetorpeek(advance)
 		 * are still available.  But when those available characters
 		 * are part of a mapping, and we are going to do a blocking
 		 * wait here.  Need to update the screen to display the
-		 * changed text so far. */
-		if ((State & INSERT) && advance && must_redraw != 0)
+		 * changed text so far. Also for when 'lazyredraw' is set and
+		 * redrawing was postponed because there was something in the
+		 * input buffer (e.g., termresponse). */
+		if (((State & INSERT) || p_lz) && advance && must_redraw != 0)
 		{
 		    update_screen(0);
 		    setcursor(); /* put cursor back where it belongs */