mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
Remove ml_ prefix from cursor.h functions
s/ml_get_curline/get_cursor_line_ptr s/ml_get_cursor/get_cursor_pos_ptr
This commit is contained in:

committed by
Justin M. Keyes

parent
2a154ef71d
commit
baaa428785
@@ -2172,7 +2172,7 @@ static int vgetorpeek(int advance)
|
||||
* character -- webb
|
||||
*/
|
||||
col = vcol = curwin->w_wcol = 0;
|
||||
ptr = ml_get_curline();
|
||||
ptr = get_cursor_line_ptr();
|
||||
while (col < curwin->w_cursor.col) {
|
||||
if (!vim_iswhite(ptr[col]))
|
||||
curwin->w_wcol = vcol;
|
||||
@@ -2200,7 +2200,7 @@ static int vgetorpeek(int advance)
|
||||
if (has_mbyte && col > 0 && curwin->w_wcol > 0) {
|
||||
/* Correct when the cursor is on the right halve
|
||||
* of a double-wide character. */
|
||||
ptr = ml_get_curline();
|
||||
ptr = get_cursor_line_ptr();
|
||||
col -= (*mb_head_off)(ptr, ptr + col);
|
||||
if ((*mb_ptr2cells)(ptr + col) > 1)
|
||||
--curwin->w_wcol;
|
||||
|
Reference in New Issue
Block a user