mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user