Mercurial > vim
diff src/testdir/test_vim9_cmd.vim @ 24834:adcd50a18236 v8.2.2955
patch 8.2.2955: Vim9: using filter in compiled command does not work
Commit: https://github.com/vim/vim/commit/e729ce294f9756165020ad86e3b98b4112e1a6ab
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 6 21:38:09 2021 +0200
patch 8.2.2955: Vim9: using filter in compiled command does not work
Problem: Vim9: using filter in compiled command does not work.
Solution: Generate EXEC including the command modifier.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Jun 2021 21:45:03 +0200 |
parents | 1bed37e82c2e |
children | 7124992f26ef |
line wrap: on
line diff
--- 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()