diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-31 17:49:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-31 17:49:14 +0100 |
commit | 21c3a80a7fd6b7fc250ce5dc287963511f54b86f (patch) | |
tree | cd168faa29c9027bc3f7edfd2b6f2e87defa90b8 /src/ex_docmd.c | |
parent | 92a3d20682d46359bb50a452b4f831659e799155 (diff) |
patch 9.0.0342: ":wincmd =" equalizes in two directionsv9.0.0342
Problem: ":wincmd =" equalizes in two directions.
Solution: Make ":vertical wincmd =" equalize vertically only and
":horizontal wincmd =" equalize horizontally only.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 0d52f58e62..681ab2ca2b 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2987,8 +2987,13 @@ parse_command_modifiers( continue; } + case 'h': if (checkforcmd_noparen(&eap->cmd, "horizontal", 3)) + { + cmod->cmod_split |= WSP_HOR; + continue; + } // ":hide" and ":hide | cmd" are not modifiers - case 'h': if (p != eap->cmd || !checkforcmd_noparen(&p, "hide", 3) + if (p != eap->cmd || !checkforcmd_noparen(&p, "hide", 3) || *p == NUL || ends_excmd(*p)) break; eap->cmd = p; |