aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorPavel Platto <hinidu@gmail.com>2014-05-16 11:59:00 +0300
committerJustin M. Keyes <justinkz@gmail.com>2014-05-28 10:42:06 -0400
commitbaaa4287851ecf478b40054efd7b786501eb70ef (patch)
tree37a5b788a29278e8a4e27b6e9c5c9f787da41a60 /src/nvim/getchar.c
parent2a154ef71de506e64fbbc2d8e613b5a696f8cb60 (diff)
downloadrneovim-baaa4287851ecf478b40054efd7b786501eb70ef.tar.gz
rneovim-baaa4287851ecf478b40054efd7b786501eb70ef.tar.bz2
rneovim-baaa4287851ecf478b40054efd7b786501eb70ef.zip
Remove ml_ prefix from cursor.h functions
s/ml_get_curline/get_cursor_line_ptr s/ml_get_cursor/get_cursor_pos_ptr
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 9cd12a1d52..d215bb06e7 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -2172,7 +2172,7 @@ static int vgetorpeek(int advance)
* character -- webb
*/
col = vcol = curwin->w_wcol = 0;
- ptr = ml_get_curline();
+ ptr = get_cursor_line_ptr();
while (col < curwin->w_cursor.col) {
if (!vim_iswhite(ptr[col]))
curwin->w_wcol = vcol;
@@ -2200,7 +2200,7 @@ static int vgetorpeek(int advance)
if (has_mbyte && col > 0 && curwin->w_wcol > 0) {
/* Correct when the cursor is on the right halve
* of a double-wide character. */
- ptr = ml_get_curline();
+ ptr = get_cursor_line_ptr();
col -= (*mb_head_off)(ptr, ptr + col);
if ((*mb_ptr2cells)(ptr + col) > 1)
--curwin->w_wcol;