mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 05:46:12 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1689,7 +1689,7 @@ static int seen_endbrace(int refnum)
|
||||
|
||||
// Trick: check if "@<=" or "@<!" follows, in which case
|
||||
// the \1 can appear before the referenced match.
|
||||
for (p = regparse; *p != NUL; p++) {
|
||||
for (p = (char_u *)regparse; *p != NUL; p++) {
|
||||
if (p[0] == '@' && p[1] == '<' && (p[2] == '!' || p[2] == '=')) {
|
||||
break;
|
||||
}
|
||||
@@ -2469,7 +2469,7 @@ do_multibyte:
|
||||
// Need to get composing character too.
|
||||
for (;;) {
|
||||
l = utf_ptr2len((char *)regparse);
|
||||
if (!utf_composinglike(regparse, regparse + l)) {
|
||||
if (!utf_composinglike((char_u *)regparse, (char_u *)regparse + l)) {
|
||||
break;
|
||||
}
|
||||
regmbc(utf_ptr2char((char *)regparse));
|
||||
|
Reference in New Issue
Block a user