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