aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.c
diff options
context:
space:
mode:
authorPavel Platto <hinidu@gmail.com>2014-05-16 11:59:00 +0300
committerJustin M. Keyes <justinkz@gmail.com>2014-05-28 10:42:06 -0400
commitbaaa4287851ecf478b40054efd7b786501eb70ef (patch)
tree37a5b788a29278e8a4e27b6e9c5c9f787da41a60 /src/nvim/mbyte.c
parent2a154ef71de506e64fbbc2d8e613b5a696f8cb60 (diff)
downloadrneovim-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/mbyte.c')
-rw-r--r--src/nvim/mbyte.c8
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;
}