diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-05-16 11:59:00 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-28 10:42:06 -0400 |
commit | baaa4287851ecf478b40054efd7b786501eb70ef (patch) | |
tree | 37a5b788a29278e8a4e27b6e9c5c9f787da41a60 /src/nvim/eval.c | |
parent | 2a154ef71de506e64fbbc2d8e613b5a696f8cb60 (diff) | |
download | rneovim-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/eval.c')
-rw-r--r-- | src/nvim/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index bf82e9373e..95fb6ed732 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -8036,7 +8036,7 @@ static void f_col(typval_T *argvars, typval_T *rettv) /* col(".") when the cursor is on the NUL at the end of the line * because of "coladd" can be seen as an extra column. */ if (virtual_active() && fp == &curwin->w_cursor) { - char_u *p = ml_get_cursor(); + char_u *p = get_cursor_pos_ptr(); if (curwin->w_cursor.coladd >= (colnr_T)chartabsize(p, curwin->w_virtcol - curwin->w_cursor.coladd)) { @@ -13832,7 +13832,7 @@ static void f_spellbadword(typval_T *argvars, typval_T *rettv) /* Find the start and length of the badly spelled word. */ len = spell_move_to(curwin, FORWARD, TRUE, TRUE, &attr); if (len != 0) - word = ml_get_cursor(); + word = get_cursor_pos_ptr(); } else if (curwin->w_p_spell && *curbuf->b_s.b_p_spl != NUL) { char_u *str = get_tv_string_chk(&argvars[0]); int capcol = -1; @@ -15393,7 +15393,7 @@ var2fpos ( pos.col = 0; } else { pos.lnum = curwin->w_cursor.lnum; - pos.col = (colnr_T)STRLEN(ml_get_curline()); + pos.col = (colnr_T)STRLEN(get_cursor_line_ptr()); } return &pos; } |