move/remove W_* macros

move W_ENDCOL to screen.c
remove the rest of the W_* macros
This commit is contained in:
Brandon Coleman
2014-05-28 16:35:14 -05:00
parent 7cdbca7789
commit 7f21665673
21 changed files with 176 additions and 183 deletions

View File

@@ -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();
/*