diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 20:18:17 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 20:25:29 +0800 |
commit | c65b1f3e15662cd14c443e34862237d3dee30977 (patch) | |
tree | 326c4820ec0d8199c45446091177ca9b38bf5930 /src/nvim/ex_docmd.c | |
parent | db2e5f46f5aa5a6300395eaa9c4923835683c770 (diff) | |
download | rneovim-c65b1f3e15662cd14c443e34862237d3dee30977.tar.gz rneovim-c65b1f3e15662cd14c443e34862237d3dee30977.tar.bz2 rneovim-c65b1f3e15662cd14c443e34862237d3dee30977.zip |
vim-patch:9.0.0342: ":wincmd =" equalizes in two directions
Problem: ":wincmd =" equalizes in two directions.
Solution: Make ":vertical wincmd =" equalize vertically only and
":horizontal wincmd =" equalize horizontally only.
https://github.com/vim/vim/commit/21c3a80a7fd6b7fc250ce5dc287963511f54b86f
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 0af737ff50..f99253ea75 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -2438,8 +2438,12 @@ int parse_command_modifiers(exarg_T *eap, char **errormsg, cmdmod_T *cmod, bool continue; } - // ":hide" and ":hide | cmd" are not modifiers case 'h': + if (checkforcmd(&eap->cmd, "horizontal", 3)) { + cmod->cmod_split |= WSP_HOR; + continue; + } + // ":hide" and ":hide | cmd" are not modifiers if (p != eap->cmd || !checkforcmd(&p, "hide", 3) || *p == NUL || ends_excmd(*p)) { break; |