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:
@@ -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
|
||||
|
Reference in New Issue
Block a user