From ba4486860ecda4b5e3584c0938abcc5046f1beaa Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Mon, 5 Jul 2010 18:02:03 +0200 Subject: [PATCH] Fix display corruption when dragging divider This fixes a bug where the screen would get corrupted when dragging a horizontal divider in full-screen mode. --- src/window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/window.c b/src/window.c index b5061cd5a3..abd107b37e 100644 --- a/src/window.c +++ b/src/window.c @@ -5559,7 +5559,12 @@ win_new_height(wp, height) wp->w_prev_fraction_row = wp->w_wrow; 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); +#else redraw_win_later(wp, SOME_VALID); +#endif #ifdef FEAT_WINDOWS wp->w_redr_status = TRUE; #endif