diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-08-06 12:37:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-08-06 12:37:44 +0000 |
commit | 1b8d33b6b262e64433c37399482f3a735eb8adac (patch) | |
tree | 7557c42c3b0691782d177c2aecf88abb1bc806cd /src/gui.c | |
parent | be555e704a0a6addc7e930342150925a1d829b7e (diff) |
updated for version 7.2b-028v7.2b.028
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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(); |