forked from aniani/vim
patch 8.2.3709: Vim9: backtick expression expanded when not desired
Problem: Vim9: backtick expression expanded when not desired.
Solution: Only expand a backtick expression for commands that expand their
argument. Remove a few outdated TODO comments.
This commit is contained in:
@@ -206,6 +206,15 @@ def Test_folddo_backtick_expansion()
|
||||
folddoclose edit `=name`
|
||||
assert_equal('xxx', bufname())
|
||||
bwipe!
|
||||
|
||||
var lines =<< trim END
|
||||
g:val = 'value'
|
||||
def Test()
|
||||
folddoopen echo `=g:val`
|
||||
enddef
|
||||
call Test()
|
||||
END
|
||||
CheckScriptFailure(lines, 'E15: Invalid expression: "`=g:val`"')
|
||||
enddef
|
||||
|
||||
def Test_hardcopy_wildcards()
|
||||
|
||||
Reference in New Issue
Block a user