diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-29 20:24:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-29 20:24:34 +0100 |
commit | 4f6b6ed208a15552f0eb7f27b7ca945f59f22c1d (patch) | |
tree | 0a5298d528d9c16401c7ea290de04447841e94ca /src/testdir/test_vim9_cmd.vim | |
parent | 185577e47e5004a5d08a5405a02ab6a261078e42 (diff) |
patch 8.2.1923: Vim9: "filter" command modifier doesn't workv8.2.1923
Problem: Vim9: "filter" command modifier doesn't work.
Solution: Check for space on char before argument. (closes #7216,
closes #7222)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 710cd2f8dc..61c47b85f9 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -312,6 +312,18 @@ def Test_filter_is_not_modifier() assert_equal([#{x: 3, y: 4}], tags) enddef +def Test_filter_is_recognized() + var lines =<< trim END + final expected = "\nType Name Content\n c \"c piyo" + @a = 'hoge' + @b = 'fuga' + @c = 'piyo' + + assert_equal(execute('filter /piyo/ registers abc'), expected) + END + CheckDefAndScriptSuccess(lines) +enddef + def Test_eval_command() var from = 3 var to = 5 |