diff options
author | ZviRackover <zvirack@gmail.com> | 2018-09-02 01:36:18 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-09-09 10:45:50 +0300 |
commit | ac13e65ae0ce98516e816ba4fcf468d19e750c30 (patch) | |
tree | e039a2201ece3358068a659b4bb84b204afd866b /src/nvim/regexp_nfa.c | |
parent | cbdbc4f63d68a6b17b9eea5c67130e37d3d0f278 (diff) | |
download | rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.tar.gz rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.tar.bz2 rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.zip |
Remove has_mbytes local to lines changed in parent commit
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 5a33113af2..5b58003047 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -563,10 +563,7 @@ static char_u *nfa_get_match_text(nfa_state_T *start) p = start->out->out; /* skip first char, it goes into regstart */ s = ret; while (p->c > 0) { - if (has_mbyte) - s += utf_char2bytes(p->c, s); - else - *s++ = p->c; + s += utf_char2bytes(p->c, s); p = p->out; } *s = NUL; |