changeset 31386:ab4b3710f437 v9.0.1026

patch 9.0.1026: type of w_last_topfill is wrong Commit: https://github.com/vim/vim/commit/2e613453eeeac3ef3405478c33775dd77d135bc7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 7 22:30:18 2022 +0000 patch 9.0.1026: type of w_last_topfill is wrong Problem: type of w_last_topfill is wrong. Solution: Use "int" instead of "linenr_T". (closes https://github.com/vim/vim/issues/11670)
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Dec 2022 23:45:05 +0100
parents ce58aee2303d
children 702519d3b98a
files src/structs.h src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1026,
+/**/
     1025,
 /**/
     1024,