diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-08-24 22:49:25 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-08-25 13:10:41 +0100 |
commit | 93f24403f8cc760ff47979c596976b53a8b16358 (patch) | |
tree | 93d2d2879aba8d563fde484d1fae5864b18134bc /src/nvim/regexp_bt.c | |
parent | 1b29288709e75064b9188420d46e1028d7ee341e (diff) | |
download | rneovim-93f24403f8cc760ff47979c596976b53a8b16358.tar.gz rneovim-93f24403f8cc760ff47979c596976b53a8b16358.tar.bz2 rneovim-93f24403f8cc760ff47979c596976b53a8b16358.zip |
refactor: pre-incr to post-incr
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r-- | src/nvim/regexp_bt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c index 769d2ceeef..d7a4f40ecf 100644 --- a/src/nvim/regexp_bt.c +++ b/src/nvim/regexp_bt.c @@ -4369,7 +4369,7 @@ static bool regmatch(char_u *scan, proftime_T *tm, int *timed_out) case BRACE_COMPLEX + 8: case BRACE_COMPLEX + 9: no = op - BRACE_COMPLEX; - ++brace_count[no]; + brace_count[no]++; // If not matched enough times yet, try one more if (brace_count[no] <= (brace_min[no] <= brace_max[no] |