diff options
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; } |