diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-06-10 15:42:09 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-07-08 19:45:57 +0200 |
commit | d11a146516557fe4298f7af45c789346cc41fbd8 (patch) | |
tree | 7f0403612288abcf1160fe5edcfda8461ca41ae6 /src/nvim/ex_docmd.c | |
parent | 44e150bd460a52e31f9714644f7664d1bc61405b (diff) | |
download | rneovim-d11a146516557fe4298f7af45c789346cc41fbd8.tar.gz rneovim-d11a146516557fe4298f7af45c789346cc41fbd8.tar.bz2 rneovim-d11a146516557fe4298f7af45c789346cc41fbd8.zip |
window: allow resize wincmds for floats
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index a494463f89..1d27cf338e 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -6922,16 +6922,17 @@ static void ex_resize(exarg_T *eap) n = atol((char *)eap->arg); if (cmdmod.split & WSP_VERT) { - if (*eap->arg == '-' || *eap->arg == '+') + if (*eap->arg == '-' || *eap->arg == '+') { n += curwin->w_width; - else if (n == 0 && eap->arg[0] == NUL) /* default is very wide */ - n = 9999; + } else if (n == 0 && eap->arg[0] == NUL) { // default is very wide + n = Columns; + } win_setwidth_win(n, wp); } else { if (*eap->arg == '-' || *eap->arg == '+') { n += curwin->w_height; } else if (n == 0 && eap->arg[0] == NUL) { // default is very high - n = 9999; + n = Rows-1; } win_setheight_win(n, wp); } |