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/cursor.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/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |