]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4915: sometimes the cursor is in the wrong position v8.2.4915
authorBram Moolenaar <Bram@vim.org>
Sun, 8 May 2022 18:39:31 +0000 (19:39 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 May 2022 18:39:31 +0000 (19:39 +0100)
Problem:    Sometimes the cursor is in the wrong position.
Solution:   When the cursor moved to another line, recompute w_botline.
            (closes #9736)

src/move.c
src/version.c

index 31dc95b2f316da22c41efe13c6a10b6cfbe430d7..5e31e7133628ed6d3e0105381f1c38e7558d4912 100644 (file)
@@ -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;
     }
index 6badc759ffc2edd298a7faa01236423cfa2a42b1..0fda34805ec777f8b2b1d791db43b58033638768 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4915,
 /**/
     4914,
 /**/