summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 6b14030649..9a465f4941 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3861,6 +3861,9 @@ gui_do_scroll()
#endif
}
+ /* Make sure wp->w_leftcol and wp->w_skipcol are correct. */
+ validate_cursor();
+
curwin = save_wp;
curbuf = save_wp->w_buffer;
@@ -3869,6 +3872,7 @@ gui_do_scroll()
* the status line!).
*/
if (old_topline != wp->w_topline
+ || wp->w_redr_type != 0
#ifdef FEAT_DIFF
|| old_topfill != wp->w_topfill
#endif