comparison src/ex_docmd.c @ 30009:b97a870a7c63 v9.0.0342

patch 9.0.0342: ":wincmd =" equalizes in two directions Commit: https://github.com/vim/vim/commit/21c3a80a7fd6b7fc250ce5dc287963511f54b86f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 31 17:49:14 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 31 Aug 2022 19:00:04 +0200
parents bb0e525e1393
children 578e71f924fe
comparison
equal deleted inserted replaced
30008:7a1cc16aed5b 30009:b97a870a7c63
2985 } 2985 }
2986 eap->cmd = p; 2986 eap->cmd = p;
2987 continue; 2987 continue;
2988 } 2988 }
2989 2989
2990 case 'h': if (checkforcmd_noparen(&eap->cmd, "horizontal", 3))
2991 {
2992 cmod->cmod_split |= WSP_HOR;
2993 continue;
2994 }
2990 // ":hide" and ":hide | cmd" are not modifiers 2995 // ":hide" and ":hide | cmd" are not modifiers
2991 case 'h': if (p != eap->cmd || !checkforcmd_noparen(&p, "hide", 3) 2996 if (p != eap->cmd || !checkforcmd_noparen(&p, "hide", 3)
2992 || *p == NUL || ends_excmd(*p)) 2997 || *p == NUL || ends_excmd(*p))
2993 break; 2998 break;
2994 eap->cmd = p; 2999 eap->cmd = p;
2995 cmod->cmod_flags |= CMOD_HIDE; 3000 cmod->cmod_flags |= CMOD_HIDE;
2996 continue; 3001 continue;