From 1b8d33b6b262e64433c37399482f3a735eb8adac Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 6 Aug 2008 12:37:44 +0000 Subject: updated for version 7.2b-028 --- src/gui.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index 8568d33ab..426cea92a 100644 --- a/src/gui.c +++ b/src/gui.c @@ -901,9 +901,10 @@ gui_update_cursor(force, clear_selection) int attr; attrentry_T *aep = NULL; - /* Don't update the cursor when halfway busy scrolling. - * ScreenLines[] isn't valid then. */ - if (!can_update_cursor) + /* Don't update the cursor when halfway busy scrolling or the screen size + * doesn't match 'columns' and 'lines. ScreenLines[] isn't valid then. */ + if (!can_update_cursor || screen_Columns != gui.num_cols + || screen_Rows != gui.num_rows) return; gui_check_pos(); -- cgit v1.2.1