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/getchar.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/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index c3ef6f0610..6b41dde827 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -2168,8 +2168,8 @@ static int vgetorpeek(int advance) ++col; } curwin->w_wrow = curwin->w_cline_row - + curwin->w_wcol / W_WIDTH(curwin); - curwin->w_wcol %= W_WIDTH(curwin); + + curwin->w_wcol / curwin->w_width; + curwin->w_wcol %= curwin->w_width; curwin->w_wcol += curwin_col_off(); col = 0; /* no correction needed */ } else { @@ -2178,7 +2178,7 @@ static int vgetorpeek(int advance) } } else if (curwin->w_p_wrap && curwin->w_wrow) { --curwin->w_wrow; - curwin->w_wcol = W_WIDTH(curwin) - 1; + curwin->w_wcol = curwin->w_width - 1; col = curwin->w_cursor.col - 1; } if (has_mbyte && col > 0 && curwin->w_wcol > 0) { |