diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 21:31:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-01 21:31:38 +0800 |
| commit | 12fe197cffc687cedc65259d9fd8351a25aa7792 (patch) | |
| tree | 7d3e74d86ba98b50c6ecc402a54eecafe13e1eef /src/nvim/window.c | |
| parent | db2e5f46f5aa5a6300395eaa9c4923835683c770 (diff) | |
| parent | 689f5d604e59eba1ddab6f91b458a8163dc6629d (diff) | |
| download | rneovim-12fe197cffc687cedc65259d9fd8351a25aa7792.tar.gz rneovim-12fe197cffc687cedc65259d9fd8351a25aa7792.tar.bz2 rneovim-12fe197cffc687cedc65259d9fd8351a25aa7792.zip | |
Merge pull request #20040 from zeertzjq/vim-9.0.0342
vim-patch:9.0.{0342,0346}: :horizontal modifier
Diffstat (limited to 'src/nvim/window.c')
| -rw-r--r-- | src/nvim/window.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index c11484d1b8..c0b73ff837 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -417,10 +417,12 @@ newwindow: | ((nchar == 'H' || nchar == 'K') ? WSP_TOP : WSP_BOT)); break; - // make all windows the same height - case '=': - win_equal(NULL, false, 'b'); + // make all windows the same width and/or height + case '=': { + int mod = cmdmod.cmod_split & (WSP_VERT | WSP_HOR); + win_equal(NULL, false, mod == WSP_VERT ? 'v' : mod == WSP_HOR ? 'h' : 'b'); break; + } // increase current window height case '+': |