summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-06 21:38:09 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-06 21:38:09 +0200
commite729ce294f9756165020ad86e3b98b4112e1a6ab (patch)
tree9bfd11d59b2a6e1592dc7ee8dc8a7f4d943631ac /src/testdir
parent6db7b6375a3ea3afef5295b1366896902012e640 (diff)
downloadvim-git-e729ce294f9756165020ad86e3b98b4112e1a6ab.tar.gz
patch 8.2.2955: Vim9: using filter in compiled command does not workv8.2.2955
Problem: Vim9: using filter in compiled command does not work. Solution: Generate EXEC including the command modifier.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_vim9_cmd.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 8481ecc59..23c5cfacf 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -534,6 +534,14 @@ def Test_command_modifier_filter()
assert_equal(execute('filter /piyo/ registers abc'), expected)
END
CheckDefAndScriptSuccess(lines)
+
+ # also do this compiled
+ lines =<< trim END
+ @a = 'very specific z3d37dh234 string'
+ filter z3d37dh234 registers
+ assert_match('very specific z3d37dh234 string', Screenline(&lines))
+ END
+ CheckDefAndScriptSuccess(lines)
enddef
def Test_win_command_modifiers()