aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-08 07:39:56 +0800
committerGitHub <noreply@github.com>2022-12-08 07:39:56 +0800
commita505c1acc37b0f9d4f7d93bfe899a59514bd0027 (patch)
tree233b361dd70870c1020b3e64d3e15a55b6b678aa
parentf92aab5f704f6e94e80f2fcbab42acc272a66a29 (diff)
downloadrneovim-a505c1acc37b0f9d4f7d93bfe899a59514bd0027.tar.gz
rneovim-a505c1acc37b0f9d4f7d93bfe899a59514bd0027.tar.bz2
rneovim-a505c1acc37b0f9d4f7d93bfe899a59514bd0027.zip
vim-patch:9.0.1026: type of w_last_topfill is wrong (#21332)
Problem: type of w_last_topfill is wrong. Solution: Use "int" instead of "linenr_T". (closes vim/vim#11670) https://github.com/vim/vim/commit/2e613453eeeac3ef3405478c33775dd77d135bc7
-rw-r--r--src/nvim/buffer_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 3d3c6f0588..e828b294b9 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1191,9 +1191,9 @@ struct window_S {
colnr_T w_skipcol; // starting column when a single line
// doesn't fit in the window
- // 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
- linenr_T w_last_topfill; ///< last known value for w_topfill
+ int w_last_topfill; ///< last known value for w_topfill
colnr_T w_last_leftcol; ///< last known value for w_leftcol
colnr_T w_last_skipcol; ///< last known value for w_skipcol
int w_last_width; ///< last known value for w_width