diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-08 19:39:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-08 19:39:31 +0100 |
commit | a91cb98bb36b0f9dc3c378c0bbd9a69de29830fa (patch) | |
tree | 165463b1c25a48cfda1f27b4d7dcc7966c83cc80 | |
parent | 933c2922b5e81b238c2e56361c76cf7c9548a2d7 (diff) | |
download | vim-git-a91cb98bb36b0f9dc3c378c0bbd9a69de29830fa.tar.gz |
patch 8.2.4915: sometimes the cursor is in the wrong positionv8.2.4915
Problem: Sometimes the cursor is in the wrong position.
Solution: When the cursor moved to another line, recompute w_botline.
(closes #9736)
-rw-r--r-- | src/move.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c index 31dc95b2f..5e31e7133 100644 --- a/src/move.c +++ b/src/move.c @@ -489,7 +489,8 @@ check_cursor_moved(win_T *wp) if (wp->w_cursor.lnum != wp->w_valid_cursor.lnum) { wp->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL - |VALID_CHEIGHT|VALID_CROW|VALID_TOPLINE); + |VALID_CHEIGHT|VALID_CROW|VALID_TOPLINE + |VALID_BOTLINE|VALID_BOTLINE_AP); wp->w_valid_cursor = wp->w_cursor; wp->w_valid_leftcol = wp->w_leftcol; } diff --git a/src/version.c b/src/version.c index 6badc759f..0fda34805 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4915, +/**/ 4914, /**/ 4913, |