From 2e613453eeeac3ef3405478c33775dd77d135bc7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 7 Dec 2022 22:30:18 +0000 Subject: 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 #11670) --- src/structs.h | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/structs.h b/src/structs.h index cefe6557fc..497a35306e 100644 --- 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 diff --git a/src/version.c b/src/version.c index d29b3cb9b6..e65729fb89 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1026, /**/ 1025, /**/ -- cgit v1.2.3