aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_nfa.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-28 23:43:04 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-08-28 23:43:04 +0200
commit461d46d8ace1b6950bf2733de9cb2b290453d86d (patch)
treea592acf9f95e8c60cc396f48ac4bf73656c0846c /src/nvim/regexp_nfa.c
parent885ca3b7a60b79feb1d4c9e54265c8b543d4f245 (diff)
parenta2403a0ed9afdfaea7abb5555dbdf555b56eff9a (diff)
downloadrneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.tar.gz
rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.tar.bz2
rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.zip
Merge #8863 'refactor: Remove mb_head_off()'
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r--src/nvim/regexp_nfa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index 29191c14a8..3be1f3d2f3 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -4639,10 +4639,10 @@ static int recursive_regmatch(nfa_state_T *state, nfa_pim_T *pim, nfa_regprog_T
}
if ((int)(reginput - regline) >= state->val) {
reginput -= state->val;
- if (has_mbyte)
- reginput -= mb_head_off(regline, reginput);
- } else
+ reginput -= utf_head_off(regline, reginput);
+ } else {
reginput = regline;
+ }
}
}