aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-21 08:58:18 +0800
committerGitHub <noreply@github.com>2023-08-21 08:58:18 +0800
commita2a226170d178086592967f23c39112811178f0c (patch)
tree4f6e662c7968a674192ef1b60ac7d42099239040 /src/nvim/buffer_defs.h
parent694814cdd54ac245d1f4d2c28dce7e9132fcb616 (diff)
downloadrneovim-a2a226170d178086592967f23c39112811178f0c.tar.gz
rneovim-a2a226170d178086592967f23c39112811178f0c.tar.bz2
rneovim-a2a226170d178086592967f23c39112811178f0c.zip
vim-patch:9.0.1772: Cursor may be adjusted in 'splitkeep'ed windows (#24811)
Problem: Cursor is adjusted in window that did not change in size by 'splitkeep'. Solution: Only check that cursor position is valid in a window that has changed in size. closes: vim/vim#12509 https://github.com/vim/vim/commit/16af913eeefb288ce968fb87e09a597413861900 Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index ca1f791d28..0a7c742798 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1194,6 +1194,7 @@ struct window_S {
int w_hsep_height; // Number of horizontal separator rows (0 or 1)
int w_vsep_width; // Number of vertical separator columns (0 or 1).
pos_save_T w_save_cursor; // backup of cursor pos and topline
+ bool w_do_win_fix_cursor; // if true cursor may be invalid
int w_winrow_off; ///< offset from winrow to the inner window area
int w_wincol_off; ///< offset from wincol to the inner window area