mirror of
https://github.com/neovim/neovim.git
synced 2025-11-30 14:10:50 +00:00
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.
21c3a80a7f
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user