diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-07-31 15:55:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 15:55:01 +0200 |
commit | 68ec497d52bc8e93e12c74099ee9826b9469c3be (patch) | |
tree | 7baab4d6c3644125835ffa24ae0948ce4327d393 /src/nvim/regexp_bt.c | |
parent | 86110ec93303a80ea14561d3976214ca27f0be63 (diff) | |
parent | 824a729628950d72834b98faf28d18b7a94eefb2 (diff) | |
download | rneovim-68ec497d52bc8e93e12c74099ee9826b9469c3be.tar.gz rneovim-68ec497d52bc8e93e12c74099ee9826b9469c3be.tar.bz2 rneovim-68ec497d52bc8e93e12c74099ee9826b9469c3be.zip |
Merge pull request #19437 from dundargoc/refactor/char_u-to-char
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r-- | src/nvim/regexp_bt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c index 5bb17e0939..fff5ae9b7f 100644 --- a/src/nvim/regexp_bt.c +++ b/src/nvim/regexp_bt.c @@ -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)); |