mirror of
https://github.com/vim/vim.git
synced 2025-10-27 09:24:23 -04:00
patch 8.1.1491: when skipping over code a function call may cause trouble
Problem: When skipping over code after an exception was thrown expression
evaluation is aborted after a function call. (Ingo Karkat)
Solution: Do not fail if not executing the expression. (closes #4507)
This commit is contained in:
@@ -178,3 +178,12 @@ func Test_scriptversion()
|
||||
call assert_fails('source Xversionscript', 'E999:')
|
||||
call delete('Xversionscript')
|
||||
endfunc
|
||||
|
||||
" Test fix for issue #4507
|
||||
func Test_skip_after_throw()
|
||||
try
|
||||
throw 'something'
|
||||
let x = wincol() || &ts
|
||||
catch /something/
|
||||
endtry
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user