mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
refactor: replace char_u with char 20 (#21714)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -461,16 +461,16 @@ static void next_search_hl(win_T *win, match_T *search_hl, match_T *shl, linenr_
|
||||
} else if (vim_strchr(p_cpo, CPO_SEARCH) == NULL
|
||||
|| (shl->rm.endpos[0].lnum == 0
|
||||
&& shl->rm.endpos[0].col <= shl->rm.startpos[0].col)) {
|
||||
char_u *ml;
|
||||
char *ml;
|
||||
|
||||
matchcol = shl->rm.startpos[0].col;
|
||||
ml = (char_u *)ml_get_buf(shl->buf, lnum, false) + matchcol;
|
||||
ml = ml_get_buf(shl->buf, lnum, false) + matchcol;
|
||||
if (*ml == NUL) {
|
||||
matchcol++;
|
||||
shl->lnum = 0;
|
||||
break;
|
||||
}
|
||||
matchcol += utfc_ptr2len((char *)ml);
|
||||
matchcol += utfc_ptr2len(ml);
|
||||
} else {
|
||||
matchcol = shl->rm.endpos[0].col;
|
||||
}
|
||||
|
Reference in New Issue
Block a user