diff src/getchar.c @ 2723:2e72d84e8965 v7.3.139

updated for version 7.3.139 Problem: When 'lazyredraw' is set ":ver" output can't be read. Solution: Don't redraw the screen when at a prompt or command line.
author Bram Moolenaar <bram@vim.org>
date Tue, 22 Mar 2011 13:07:26 +0100
parents 417c04135ca2
children 930b171ce3fc
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2713,7 +2713,8 @@ vgetorpeek(advance)
 		 * 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)
+		if (((State & INSERT) != 0 || p_lz) && (State & CMDLINE) == 0
+			  && advance && must_redraw != 0 && !need_wait_return)
 		{
 		    update_screen(0);
 		    setcursor(); /* put cursor back where it belongs */