mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.2.4688: new regexp engine does not give an error for "\%v"
Problem: New regexp engine does not give an error for "\%v". Solution: Check for a value argument. (issue #10079)
This commit is contained in:
@@ -91,6 +91,18 @@ func Test_multi_failure()
|
||||
set re=0
|
||||
endfunc
|
||||
|
||||
func Test_column_failure()
|
||||
set re=1
|
||||
call assert_fails('/\%v', 'E71:')
|
||||
call assert_fails('/\%c', 'E71:')
|
||||
call assert_fails('/\%l', 'E71:')
|
||||
set re=2
|
||||
call assert_fails('/\%v', 'E1273:')
|
||||
call assert_fails('/\%c', 'E1273:')
|
||||
call assert_fails('/\%l', 'E1273:')
|
||||
set re=0
|
||||
endfunc
|
||||
|
||||
func Test_recursive_addstate()
|
||||
" This will call addstate() recursively until it runs into the limit.
|
||||
let lnum = search('\v((){328}){389}')
|
||||
|
Reference in New Issue
Block a user