summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-29 17:30:27 +0200
committerBram Moolenaar <Bram@vim.org>2017-03-29 17:30:27 +0200
commitace95989ed81929a84e205b26d0972cb9d6b4b19 (patch)
treee6d6813abe2e2671741c7ca27864d85969ec601b /src/regexp_nfa.c
parent0c078fc7db2902d4ccba04506db082ddbef45a8c (diff)
downloadvim-git-ace95989ed81929a84e205b26d0972cb9d6b4b19.tar.gz
patch 8.0.0520: using a function pointer while the function is knownv8.0.0520
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)
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index e6d8255e9..120861a46 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -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;