aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-06-12 20:13:52 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-06-12 20:13:52 -0400
commit168575f3f73f79185db0abdb91be364c0d0f29f9 (patch)
treec9bbf386710d6c57021e03811b2483bcd574812f /src/nvim/getchar.c
parent284a38a065f6cedd37f8f7d75c1953884653503c (diff)
parent1ff8ed7b823623e9abd224f78fbce7e20ce66f5d (diff)
downloadrneovim-168575f3f73f79185db0abdb91be364c0d0f29f9.tar.gz
rneovim-168575f3f73f79185db0abdb91be364c0d0f29f9.tar.bz2
rneovim-168575f3f73f79185db0abdb91be364c0d0f29f9.zip
Merge #774 'Move defines from vim.h to other header files'
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c6
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) {