forked from aniani/vim
patch 8.2.4975: recursive command line loop may cause a crash
Problem: Recursive command line loop may cause a crash. Solution: Limit recursion of getcmdline().
This commit is contained in:
@@ -3392,4 +3392,16 @@ func Test_screenpos_and_completion()
|
||||
call feedkeys(":let a\<C-R>=Check_completion()\<CR>\<Esc>", "xt")
|
||||
endfunc
|
||||
|
||||
func Test_recursive_register()
|
||||
let @= = ''
|
||||
silent! ?e/
|
||||
let caught = 'no'
|
||||
try
|
||||
normal //
|
||||
catch /E169:/
|
||||
let caught = 'yes'
|
||||
endtry
|
||||
call assert_equal('yes', caught)
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user