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/testdir | |
| 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/testdir')
| -rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index 8528412806..e31bb08b19 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -30,3 +30,11 @@ func Test_equivalence_re2() set re=2 call s:equivalence_test() endfunc + +func Test_range_with_newline() + new + call setline(1, "a") + call assert_equal(0, search("[ -*\\n- ]")) + call assert_equal(0, search("[ -*\\t-\\n]")) + bwipe! +endfunc |