mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.0742: reading past end of the line when compiling a function
Problem: Reading past end of the line when compiling a function with errors. Solution: Do not return an invalid pointer. Fix skipping redirection.
This commit is contained in:
@@ -4339,6 +4339,33 @@ def Test_defer()
|
||||
assert_equal('', glob('XdeferFile'))
|
||||
enddef
|
||||
|
||||
def Test_invalid_redir()
|
||||
var lines =<< trim END
|
||||
def Tone()
|
||||
if 1
|
||||
redi =>@ |