aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index d95927cfd6..31243a12c4 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -5908,7 +5908,7 @@ static void ex_resize(exarg_T *eap)
n = atol((char *)eap->arg);
if (cmdmod.split & WSP_VERT) {
if (*eap->arg == '-' || *eap->arg == '+')
- n += W_WIDTH(curwin);
+ n += curwin->w_width;
else if (n == 0 && eap->arg[0] == NUL) /* default is very wide */
n = 9999;
win_setwidth_win((int)n, wp);
@@ -6393,9 +6393,9 @@ static void ex_sleep(exarg_T *eap)
long len;
if (cursor_valid()) {
- n = W_WINROW(curwin) + curwin->w_wrow - msg_scrolled;
+ n = curwin->w_winrow + curwin->w_wrow - msg_scrolled;
if (n >= 0)
- windgoto((int)n, W_WINCOL(curwin) + curwin->w_wcol);
+ windgoto((int)n, curwin->w_wincol + curwin->w_wcol);
}
len = eap->line2;