mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
window: allow resize wincmds for floats
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user