diff options
author | Brandon Coleman <metrix1978@gmail.com> | 2014-05-28 16:35:14 -0500 |
---|---|---|
committer | Brandon Coleman <metrix1978@gmail.com> | 2014-06-12 01:20:36 -0500 |
commit | 7f21665673686c653389ff4e86a2ce8e17804178 (patch) | |
tree | bffd897b743ce4b1cf79ecbd4ca988821768c3a7 /src/nvim/ex_docmd.c | |
parent | 7cdbca77899b8bb09c7a0a4c874c06021543c986 (diff) | |
download | rneovim-7f21665673686c653389ff4e86a2ce8e17804178.tar.gz rneovim-7f21665673686c653389ff4e86a2ce8e17804178.tar.bz2 rneovim-7f21665673686c653389ff4e86a2ce8e17804178.zip |
move/remove W_* macros
move W_ENDCOL to screen.c
remove the rest of the W_* macros
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 6 |
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; |