From baaa4287851ecf478b40054efd7b786501eb70ef Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Fri, 16 May 2014 11:59:00 +0300 Subject: Remove ml_ prefix from cursor.h functions s/ml_get_curline/get_cursor_line_ptr s/ml_get_cursor/get_cursor_pos_ptr --- src/nvim/cursor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/nvim/cursor.c') diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index e90422bf6d..8427f2a0a2 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -70,7 +70,7 @@ int coladvance(colnr_T wcol) if (wcol == MAXCOL || rc == FAIL) curwin->w_valid &= ~VALID_VIRTCOL; - else if (*ml_get_cursor() != TAB) { + else if (*get_cursor_pos_ptr() != TAB) { /* Virtcol is valid when not on a TAB */ curwin->w_valid |= VALID_VIRTCOL; curwin->w_virtcol = wcol; @@ -444,8 +444,8 @@ int leftcol_changed(void) int gchar_cursor(void) { if (has_mbyte) - return (*mb_ptr2char)(ml_get_cursor()); - return (int)*ml_get_cursor(); + return (*mb_ptr2char)(get_cursor_pos_ptr()); + return (int)*get_cursor_pos_ptr(); } /* @@ -461,7 +461,7 @@ void pchar_cursor(char_u c) /* * Return pointer to cursor line. */ -char_u *ml_get_curline(void) +char_u *get_cursor_line_ptr(void) { return ml_get_buf(curbuf, curwin->w_cursor.lnum, FALSE); } @@ -469,7 +469,7 @@ char_u *ml_get_curline(void) /* * Return pointer to cursor position. */ -char_u *ml_get_cursor(void) +char_u *get_cursor_pos_ptr(void) { return ml_get_buf(curbuf, curwin->w_cursor.lnum, FALSE) + curwin->w_cursor.col; -- cgit