diff src/testdir/test_vim9_cmd.vim @ 23344:1f37fd20f851 v8.2.2215

patch 8.2.2215: Vim9: not recognized in global command Commit: https://github.com/vim/vim/commit/56ce9ea3ea46529cac2fdf3151abfa0e1ae49bad Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 25 18:35:29 2020 +0100 patch 8.2.2215: Vim9: not recognized in global command Problem: Vim9: not recognized in global command. Solution: Skip over pattern. (issue https://github.com/vim/vim/issues/7541)
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Dec 2020 18:45:03 +0100
parents 10bbff53d3d1
children 2060f53b7c17
line wrap: on
line diff
--- 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