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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 0d52f58..681ab2c 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2987,8 +2987,13 @@
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;