0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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 #3989)  Also fix
            error message.  (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2019-02-17 20:17:02 +01:00
parent c85c8fcb9f
commit a5483448cb
3 changed files with 13 additions and 2 deletions

View File

@@ -122,3 +122,11 @@ func Test_rex_init()
bwipe!
set re=0
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