0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen

Problem:    Vim9: backtick expansion doesn't work for :foldopen.
Solution:   Do recognize backtick expansion. (closes #7621)
This commit is contained in:
Bram Moolenaar
2021-01-05 19:23:28 +01:00
parent a79925a0a8
commit ecac591cce
3 changed files with 26 additions and 0 deletions

View File

@@ -81,6 +81,23 @@ def Test_global_backtick_expansion()
bwipe!
enddef
def Test_folddo_backtick_expansion()
new
var name = 'xxx'
folddoopen edit `=name`
assert_equal('xxx', bufname())
bwipe!
new
setline(1, ['one', 'two'])
set nomodified
:1,2fold
foldclose
folddoclose edit `=name`
assert_equal('xxx', bufname())
bwipe!
enddef
def Test_hardcopy_wildcards()
CheckUnix
CheckFeature postscript