mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
regexp: Remove another has_mbyte/…-checking stuff
This commit is contained in:
@@ -2923,13 +2923,8 @@ static void skipchr(void)
|
|||||||
else
|
else
|
||||||
prevchr_len = 0;
|
prevchr_len = 0;
|
||||||
if (regparse[prevchr_len] != NUL) {
|
if (regparse[prevchr_len] != NUL) {
|
||||||
if (enc_utf8)
|
// Exclude composing chars that utfc_ptr2len does include.
|
||||||
/* exclude composing chars that mb_ptr2len does include */
|
prevchr_len += utf_ptr2len(regparse + prevchr_len);
|
||||||
prevchr_len += utf_ptr2len(regparse + prevchr_len);
|
|
||||||
else if (has_mbyte)
|
|
||||||
prevchr_len += (*mb_ptr2len)(regparse + prevchr_len);
|
|
||||||
else
|
|
||||||
++prevchr_len;
|
|
||||||
}
|
}
|
||||||
regparse += prevchr_len;
|
regparse += prevchr_len;
|
||||||
prev_at_start = at_start;
|
prev_at_start = at_start;
|
||||||
|
Reference in New Issue
Block a user