public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
From 381a75906f9ff7847a0144e884afdd4088c26cb1 Mon Sep 17 00:00:00 2001
From: Wincent Colaiuta <win@wincent.com>
Date: Thu, 4 Nov 2010 08:47:42 +0100
Subject: [PATCH] Fix overly aggressive redrawing of status line area
 
Commit ba4486860 added a fix for display corruption during resizing of
splits in full-screen mode, but it repaints the display too agressively,
causing the contents of the status line to be overwritten.
 
By redrawing the buffer (NOT_VALID) rather than the whole screeen
(CLEAR) we no longer overwrite the status line, and it appears that the
display corruption is still kept at bay (tested on Mac OS X 10.6.4 in
full-screen mode with vertical splits, horizontal splits, and a mix of
both).
 
See also:
 
http://groups.google.com/group/vim_mac/browse_thread/thread/a6c2e541a1382a8d
https://wincent.com/issues/1692
 
Signed-off-by: Wincent Colaiuta <win@wincent.com>
---
src/window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
 
diff --git a/src/window.c b/src/window.c
index 5000d6c..5e56379 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5596,7 +5596,7 @@ win_new_height(wp, height)
win_comp_scroll(wp);
#ifdef FEAT_GUI_MACVIM
/* The view may have moved, so clear all or display may get corrupted. */
- redraw_win_later(wp, CLEAR);
+ redraw_win_later(wp, NOT_VALID);
#else
redraw_win_later(wp, SOME_VALID);
#endif
--
1.7.3.2

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.