mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
vim-patch:8.2.1856: "2resize" uses size of current window
Problem: "2resize" uses size of current window.
Solution: Use size of resized window. (Yasuhiro Matsumoto, closes vim/vim#7152)
9668cc57a1
This commit is contained in:
@@ -7138,14 +7138,14 @@ static void ex_resize(exarg_T *eap)
|
||||
n = atol((char *)eap->arg);
|
||||
if (cmdmod.split & WSP_VERT) {
|
||||
if (*eap->arg == '-' || *eap->arg == '+') {
|
||||
n += curwin->w_width;
|
||||
n += wp->w_width;
|
||||
} 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;
|
||||
n += wp->w_height;
|
||||
} else if (n == 0 && eap->arg[0] == NUL) { // default is very high
|
||||
n = Rows-1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user