Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
From 381a75906f9ff7847a0144e884afdd4088c26cb1 Mon Sep 17 00:00:00 2001
From: Wincent Colaiuta <>
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
See also:
Signed-off-by: Wincent Colaiuta <>
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)
/* The view may have moved, so clear all or display may get corrupted. */
- redraw_win_later(wp, CLEAR);
+ redraw_win_later(wp, NOT_VALID);
redraw_win_later(wp, SOME_VALID);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.