1
0
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:
Bram Moolenaar
2021-11-30 21:58:19 +00:00
parent 69535d8a0a
commit fad2742d53
3 changed files with 27 additions and 12 deletions

View File

@@ -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()