diff src/misc1.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 862d920800b1
children 2e72d84e8965
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3115,7 +3115,15 @@ get_keystroke()
 	    continue;
 
 	if (n == KEYLEN_REMOVED)  /* key code removed */
+	{
+	    if (must_redraw)
+	    {
+		/* Redrawing was postponed, do it now. */
+		update_screen(0);
+		setcursor(); /* put cursor back where it belongs */
+	    }
 	    continue;
+	}
 	if (n > 0)		/* found a termcode: adjust length */
 	    len = n;
 	if (len == 0)		/* nothing typed yet */