diff options
Diffstat (limited to 'src/nvim/mbyte.c')
| -rw-r--r-- | src/nvim/mbyte.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index ecc272fe00..ec1997657b 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -2860,7 +2860,7 @@ void show_utf8()    /* Get the byte length of the char under the cursor, including composing     * characters. */ -  line = ml_get_cursor(); +  line = get_cursor_pos_ptr();    len = utfc_ptr2len(line);    if (len == 0) {      MSG("NUL"); @@ -3097,7 +3097,7 @@ void utf_find_illegal()    curwin->w_cursor.coladd = 0;    for (;; ) { -    p = ml_get_cursor(); +    p = get_cursor_pos_ptr();      if (vimconv.vc_type != CONV_NONE) {        free(tofree);        tofree = string_convert(&vimconv, p, NULL); @@ -3113,12 +3113,12 @@ void utf_find_illegal()        if (*p >= 0x80 && (len == 1              || utf_char2len(utf_ptr2char(p)) != len)) {          if (vimconv.vc_type == CONV_NONE) -          curwin->w_cursor.col += (colnr_T)(p - ml_get_cursor()); +          curwin->w_cursor.col += (colnr_T)(p - get_cursor_pos_ptr());          else {            int l;            len = (int)(p - tofree); -          for (p = ml_get_cursor(); *p != NUL && len-- > 0; p += l) { +          for (p = get_cursor_pos_ptr(); *p != NUL && len-- > 0; p += l) {              l = utf_ptr2len(p);              curwin->w_cursor.col += l;            }  | 
