diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-05 13:18:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-05 13:18:05 -0400 |
| commit | becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a (patch) | |
| tree | 3bfbda933913e5a4636241439d4f350956126431 /src/nvim/regexp_nfa.c | |
| parent | bfcec8d2f03cb4eb7dc905e97b1f1c13c2ec2241 (diff) | |
| parent | 77b24c867bf55c84bf7c7b13c33bd7ee33880ac8 (diff) | |
| download | rneovim-becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a.tar.gz rneovim-becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a.tar.bz2 rneovim-becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a.zip | |
Merge pull request #14724 from janlazo/vim-8.2.2877
vim-patch:8.0.1578,8.2.{2877,2937}
Diffstat (limited to 'src/nvim/regexp_nfa.c')
| -rw-r--r-- | src/nvim/regexp_nfa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 5047e0db03..35c3285cda 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -1461,10 +1461,10 @@ static int nfa_regatom(void) if (nfa_regatom() == FAIL) return FAIL; } - getchr(); /* get the ] */ - if (n == 0) - EMSG2_RET_FAIL(_(e_empty_sb), - reg_magic == MAGIC_ALL); + (void)getchr(); // get the ] + if (n == 0) { + EMSG2_RET_FAIL(_(e_empty_sb), reg_magic == MAGIC_ALL); + } EMIT(NFA_OPT_CHARS); EMIT(n); |