aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor.c
diff options
context:
space:
mode:
authorBrandon Coleman <metrix1978@gmail.com>2014-05-28 16:35:14 -0500
committerBrandon Coleman <metrix1978@gmail.com>2014-06-12 01:20:36 -0500
commit7f21665673686c653389ff4e86a2ce8e17804178 (patch)
treebffd897b743ce4b1cf79ecbd4ca988821768c3a7 /src/nvim/cursor.c
parent7cdbca77899b8bb09c7a0a4c874c06021543c986 (diff)
downloadrneovim-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/cursor.c')
-rw-r--r--src/nvim/cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c
index 5049a51872..18e95f0741 100644
--- a/src/nvim/cursor.c
+++ b/src/nvim/cursor.c
@@ -113,7 +113,7 @@ static int coladvance2(
--curwin->w_curswant;
}
} else {
- int width = W_WIDTH(curwin) - win_col_off(curwin);
+ int width = curwin->w_width - win_col_off(curwin);
if (finetune
&& curwin->w_p_wrap
@@ -217,7 +217,7 @@ static int coladvance2(
int b = (int)wcol - (int)col;
/* The difference between wcol and col is used to set coladd. */
- if (b > 0 && b < (MAXCOL - 2 * W_WIDTH(curwin)))
+ if (b > 0 && b < (MAXCOL - 2 * curwin->w_width))
pos->coladd = b;
col += b;
@@ -395,7 +395,7 @@ bool leftcol_changed(void)
bool retval = false;
changed_cline_bef_curs();
- lastcol = curwin->w_leftcol + W_WIDTH(curwin) - curwin_col_off() - 1;
+ lastcol = curwin->w_leftcol + curwin->w_width - curwin_col_off() - 1;
validate_virtcol();
/*