forked from aniani/vim
patch 8.0.0520: using a function pointer while the function is known
Problem: Using a function pointer instead of the actual function, which we
know.
Solution: Change mb_ functions to utf_ functions when already checked for
Unicode. (Dominique Pelle, closes #1582)
This commit is contained in:
@@ -1974,7 +1974,7 @@ collection:
|
||||
nfa_do_multibyte:
|
||||
/* plen is length of current char with composing chars */
|
||||
if (enc_utf8 && ((*mb_char2len)(c)
|
||||
!= (plen = (*mb_ptr2len)(old_regparse))
|
||||
!= (plen = utfc_ptr2len(old_regparse))
|
||||
|| utf_iscomposing(c)))
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user