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/misc1.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/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index efe0ccff6a..e63ca008bc 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -120,7 +120,7 @@ open_line ( /* * make a copy of the current line so we can mess with it */ - saved_line = vim_strsave(ml_get_curline()); + saved_line = vim_strsave(get_cursor_line_ptr()); if (State & VREPLACE_FLAG) { /* @@ -286,7 +286,7 @@ open_line ( if ((pos = findmatch(NULL, '(')) != NULL) { curwin->w_cursor.lnum = pos->lnum; newindent = get_indent(); - ptr = ml_get_curline(); + ptr = get_cursor_line_ptr(); } } /* @@ -887,7 +887,7 @@ open_line ( && curbuf->b_p_lisp && curbuf->b_p_ai) { fixthisline(get_lisp_indent); - p = ml_get_curline(); + p = get_cursor_line_ptr(); ai_col = (colnr_T)(skipwhite(p) - p); } /* @@ -901,7 +901,7 @@ open_line ( ? KEY_OPEN_FORW : KEY_OPEN_BACK, ' ', linewhite(curwin->w_cursor.lnum))) { do_c_expr_indent(); - p = ml_get_curline(); + p = get_cursor_line_ptr(); ai_col = (colnr_T)(skipwhite(p) - p); } if (vreplace_mode != 0) @@ -914,7 +914,7 @@ open_line ( */ if (State & VREPLACE_FLAG) { /* Put new line in p_extra */ - p_extra = vim_strsave(ml_get_curline()); + p_extra = vim_strsave(get_cursor_line_ptr()); /* Put back original line */ ml_replace(curwin->w_cursor.lnum, next_line, FALSE); @@ -1595,7 +1595,7 @@ int del_char(int fixpos) if (has_mbyte) { /* Make sure the cursor is at the start of a character. */ mb_adjust_cursor(); - if (*ml_get_cursor() == NUL) + if (*get_cursor_pos_ptr() == NUL) return FAIL; return del_chars(1L, fixpos); } @@ -1612,7 +1612,7 @@ int del_chars(long count, int fixpos) char_u *p; int l; - p = ml_get_cursor(); + p = get_cursor_pos_ptr(); for (i = 0; i < count && *p != NUL; ++i) { l = (*mb_ptr2len)(p); bytes += l; |