summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-03-22 13:07:26 +0100
committerBram Moolenaar <Bram@vim.org>2011-03-22 13:07:26 +0100
commitfd30cd41dc61e293e567ccb83d7ee0ce8fdc14eb (patch)
treea4964337e01f30c9cbb982111f8dcaef45b8a2cc /src/getchar.c
parentf63c49d4e93ef064836d6b96609f78813d72871c (diff)
updated for version 7.3.139v7.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.
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 8edf0a37ec..1073d80d60 100644
--- 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 */