From: Bram Moolenaar Date: Sun, 8 May 2022 18:39:31 +0000 (+0100) Subject: patch 8.2.4915: sometimes the cursor is in the wrong position X-Git-Tag: v8.2.4915 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91cb98bb36b0f9dc3c378c0bbd9a69de29830fa;p=thirdparty%2Fvim.git patch 8.2.4915: sometimes the cursor is in the wrong position Problem: Sometimes the cursor is in the wrong position. Solution: When the cursor moved to another line, recompute w_botline. (closes #9736) --- diff --git a/src/move.c b/src/move.c index 31dc95b2f3..5e31e71336 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 6badc759ff..0fda34805e 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4915, /**/ 4914, /**/