comparison src/testdir/test_cmdline.vim @ 28905:f3f45218f923 v8.2.4975

patch 8.2.4975: recursive command line loop may cause a crash Commit: https://github.com/vim/vim/commit/51f0bfb88a3554ca2dde777d78a59880d1ee37a8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 17 20:11:02 2022 +0100 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().
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 May 2022 21:15:03 +0200
parents add09d468c0d
children e7bd4c788053
comparison
equal deleted inserted replaced
28904:02398ff5b522 28905:f3f45218f923
3390 3390
3391 func Test_screenpos_and_completion() 3391 func Test_screenpos_and_completion()
3392 call feedkeys(":let a\<C-R>=Check_completion()\<CR>\<Esc>", "xt") 3392 call feedkeys(":let a\<C-R>=Check_completion()\<CR>\<Esc>", "xt")
3393 endfunc 3393 endfunc
3394 3394
3395 func Test_recursive_register()
3396 let @= = ''
3397 silent! ?e/
3398 let caught = 'no'
3399 try
3400 normal //
3401 catch /E169:/
3402 let caught = 'yes'
3403 endtry
3404 call assert_equal('yes', caught)
3405 endfunc
3406
3395 " vim: shiftwidth=2 sts=2 expandtab 3407 " vim: shiftwidth=2 sts=2 expandtab