aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_nfa.c
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2018-06-10 18:31:51 +0800
committerJustin M. Keyes <justinkz@gmail.com>2018-06-10 12:31:51 +0200
commit7cc9d2b2b2e2cc4e78bf37512ac03ded3e18d6c1 (patch)
tree1c0e9383b3c201c12f3d7bcdb7d0b5c6d95bb570 /src/nvim/regexp_nfa.c
parentbbb88607c9cc60a6fa332382e9a8cc0c8726c03f (diff)
downloadrneovim-7cc9d2b2b2e2cc4e78bf37512ac03ded3e18d6c1.tar.gz
rneovim-7cc9d2b2b2e2cc4e78bf37512ac03ded3e18d6c1.tar.bz2
rneovim-7cc9d2b2b2e2cc4e78bf37512ac03ded3e18d6c1.zip
vim-patch:8.0.0520: using a function pointer while the function is known (#8513)
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 vim/vim#1582) https://github.com/vim/vim/commit/ace95989ed81929a84e205b26d0972cb9d6b4b19
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r--src/nvim/regexp_nfa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index 334539b228..c2b1b97ce9 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -1805,9 +1805,9 @@ collection:
int plen;
nfa_do_multibyte:
- /* plen is length of current char with composing chars */
+ // 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;