]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1026: type of w_last_topfill is wrong v9.0.1026
authorBram Moolenaar <Bram@vim.org>
Wed, 7 Dec 2022 22:30:18 +0000 (22:30 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 7 Dec 2022 22:30:18 +0000 (22:30 +0000)
Problem:    type of w_last_topfill is wrong.
Solution:   Use "int" instead of "linenr_T". (closes #11670)

src/structs.h
src/version.c

index cefe6557fc58383cb7532910009fa17d0db1babe..497a35306e79be4663cbc18adb5eeb6b35ff7539 100644 (file)
@@ -3616,10 +3616,10 @@ struct window_S
                                    // window
 #endif
 
-    // five fields that are only used when there is a WinScrolled autocommand
+    // six fields that are only used when there is a WinScrolled autocommand
     linenr_T   w_last_topline;     // last known value for w_topline
 #ifdef FEAT_DIFF
-    linenr_T   w_last_topfill;     // last known value for w_topfill
+    int                w_last_topfill;     // last known value for w_topfill
 #endif
     colnr_T    w_last_leftcol;     // last known value for w_leftcol
     colnr_T    w_last_skipcol;     // last known value for w_skipcol
index d29b3cb9b622dee5d015be79315e0d8930e8b4f2..e65729fb89e034cddac64f3f7a3735f390e59915 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1026,
 /**/
     1025,
 /**/