diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-06 21:38:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-06 21:38:09 +0200 |
commit | e729ce294f9756165020ad86e3b98b4112e1a6ab (patch) | |
tree | 9bfd11d59b2a6e1592dc7ee8dc8a7f4d943631ac /src/testdir/test_vim9_cmd.vim | |
parent | 6db7b6375a3ea3afef5295b1366896902012e640 (diff) | |
download | vim-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/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 8 |
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() |