diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-05 20:04:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-05 20:04:35 +0200 |
commit | 8a1880f04109b2043efdd4c53f5b24cadf511c69 (patch) | |
tree | 1479322cdf125176ac145dc3cc6a8f5fb151a59e /src/nvim/regexp_nfa.c | |
parent | 9d6c205a339f0926bdf6cf9312e1db40642df259 (diff) | |
parent | fb02e9f1e95a72cc7e09465d706f67652ff3bb5e (diff) | |
download | rneovim-8a1880f04109b2043efdd4c53f5b24cadf511c69.tar.gz rneovim-8a1880f04109b2043efdd4c53f5b24cadf511c69.tar.bz2 rneovim-8a1880f04109b2043efdd4c53f5b24cadf511c69.zip |
Merge #9972 from janlazo/vim-8.1.1249
vim-patch:8.1.{613,1046,1249}
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index b935b44291..ce7270ae65 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -4968,13 +4968,15 @@ static int nfa_did_time_out(void) /// /// When "nfa_endp" is not NULL it is a required end-of-match position. /// -/// Return TRUE if there is a match, FALSE otherwise. +/// Return TRUE if there is a match, FALSE if there is no match, +/// NFA_TOO_EXPENSIVE if we end up with too many states. /// When there is a match "submatch" contains the positions. +/// /// Note: Caller must ensure that: start != NULL. static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *submatch, regsubs_T *m) { - int result; + int result = false; int flag = 0; bool go_to_nextline = false; nfa_thread_T *t; |