Created
November 4, 2010 08:05
-
-
Save wincent/662226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 381a75906f9ff7847a0144e884afdd4088c26cb1 Mon Sep 17 00:00:00 2001 | |
From: Wincent Colaiuta <[email protected]> | |
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 <[email protected]> | |
--- | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment