diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-02-17 19:03:25 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-02-17 19:11:16 -0500 |
commit | 55821948cfb553bcf8bbb23f77a0f43070b4fdb0 (patch) | |
tree | e58a88718d2779d81269619069061a07282b6382 /src/nvim/regexp_nfa.c | |
parent | 6b827bb6646c213b8ad5ee6c1c87dcfd84f4bc29 (diff) | |
download | rneovim-55821948cfb553bcf8bbb23f77a0f43070b4fdb0.tar.gz rneovim-55821948cfb553bcf8bbb23f77a0f43070b4fdb0.tar.bz2 rneovim-55821948cfb553bcf8bbb23f77a0f43070b4fdb0.zip |
vim-patch:8.1.0945: internal error when using pattern with NL in the range
Problem: Internal error when using pattern with NL in the range.
Solution: Use an actual newline for the range. (closes vim/vim#3989) Also fix
error message. (Dominique Pelle)
https://github.com/vim/vim/commit/a5483448cba6997517003a22a8029f0de1007d0e
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 08ef7da9c1..4e5f855e7f 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -1692,7 +1692,8 @@ collection: MB_PTR_ADV(regparse); if (*regparse == 'n') - startc = reg_string ? NL : NFA_NEWL; + startc = (reg_string || emit_range || regparse[1] == '-') + ? NL : NFA_NEWL; else if (*regparse == 'd' || *regparse == 'o' || *regparse == 'x' |