diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-12 07:47:28 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-12 07:48:25 +0800 |
commit | 3b562535c323292637a53d36d9bd341feea2f2c6 (patch) | |
tree | c0194694b6180e3ea28099dd45fa98a0ddcbc425 | |
parent | 45cc5fd7656c48606bf337a4cc01380bedc8ba36 (diff) | |
download | rneovim-3b562535c323292637a53d36d9bd341feea2f2c6.tar.gz rneovim-3b562535c323292637a53d36d9bd341feea2f2c6.tar.bz2 rneovim-3b562535c323292637a53d36d9bd341feea2f2c6.zip |
vim-patch:8.2.4523: when gvim is started maximized the 'window' option isn't set
Problem: When gvim is started maximized the 'window' option isn't set
properly. (Christian J. Robinson)
Solution: Check if 'windows' was already set or not. (Ken Takata,
closes vim/vim#9904)
https://github.com/vim/vim/commit/6ca883dd8a585a85acdf9303b434211ea91872a7
-rw-r--r-- | src/nvim/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index d7ca718c68..d99d22af12 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -5226,7 +5226,7 @@ void win_new_screensize(void) if (old_Rows != Rows) { // If 'window' uses the whole screen, keep it using that. // Don't change it when set with "-w size" on the command line. - if (p_window == old_Rows - 1 || (old_Rows == 0 && p_window == 0)) { + if (p_window == old_Rows - 1 || (old_Rows == 0 && !option_was_set("window"))) { p_window = Rows - 1; } old_Rows = Rows; |