mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -213,13 +213,13 @@ bool findpar(bool *pincl, int dir, long count, int what, bool both)
|
||||
}
|
||||
curwin->w_cursor.lnum = curr;
|
||||
if (curr == curbuf->b_ml.ml_line_count && what != '}') {
|
||||
char_u *line = (char_u *)ml_get(curr);
|
||||
char *line = ml_get(curr);
|
||||
|
||||
// Put the cursor on the last character in the last line and make the
|
||||
// motion inclusive.
|
||||
if ((curwin->w_cursor.col = (colnr_T)STRLEN(line)) != 0) {
|
||||
if ((curwin->w_cursor.col = (colnr_T)strlen(line)) != 0) {
|
||||
curwin->w_cursor.col--;
|
||||
curwin->w_cursor.col -= utf_head_off((char *)line, (char *)line + curwin->w_cursor.col);
|
||||
curwin->w_cursor.col -= utf_head_off(line, line + curwin->w_cursor.col);
|
||||
*pincl = true;
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user