diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-25 18:35:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-25 18:35:29 +0100 |
commit | 56ce9ea3ea46529cac2fdf3151abfa0e1ae49bad (patch) | |
tree | ac0550cf30c9dc2b19febb43f03762b5bd67c739 /src/testdir/test_vim9_cmd.vim | |
parent | f8103f274e828bdc2dcbc4d857f166f25e0a855e (diff) |
patch 8.2.2215: Vim9: not recognized in global commandv8.2.2215
Problem: Vim9: not recognized in global command.
Solution: Skip over pattern. (issue #7541)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index f05872ef23..9790789a07 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -25,6 +25,15 @@ def Test_edit_wildcards() CheckDefFailure(['edit `="foo"'], 'E1083:') enddef +def Test_global_backtick_expansion() + new + setline(1, 'xx') + var name = 'foobar' + g/^xx/s/.*/`=name` + assert_equal('foobar', getline(1)) + bwipe! +enddef + def Test_hardcopy_wildcards() CheckUnix CheckFeature postscript |