patch 8.2.2215: Vim9: not recognized in global command
Problem: Vim9: not recognized in global command.
Solution: Skip over pattern. (issue #7541)
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index f05872e..9790789 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -25,6 +25,15 @@
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