diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-02-10 07:28:54 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-10 07:28:54 +0800 |
| commit | c415e764d424251bb8139dcdd793b7b716aec563 (patch) | |
| tree | 47c787f859aeb08526e041753cea6a90cfa0b9a3 /src/nvim/testdir | |
| parent | aea889fc06f0efb691cab92ebe2e46c52fe259b1 (diff) | |
| download | rneovim-c415e764d424251bb8139dcdd793b7b716aec563.tar.gz rneovim-c415e764d424251bb8139dcdd793b7b716aec563.tar.bz2 rneovim-c415e764d424251bb8139dcdd793b7b716aec563.zip | |
vim-patch:8.2.4336: using :filter for :scriptnames does not work
Problem: Using :filter for :scriptnames does not work. (Ben Jackson)
Solution: Call message_filtered(). (closes vim/vim#9720)
https://github.com/vim/vim/commit/769f5895ebfd10535a0ad978f071da8f20178fc6
Cherry-pick a modeline from Vim patch 8.2.1432.
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_filter_cmd.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_filter_cmd.vim b/src/nvim/testdir/test_filter_cmd.vim index 144c7fa863..d465e48c7b 100644 --- a/src/nvim/testdir/test_filter_cmd.vim +++ b/src/nvim/testdir/test_filter_cmd.vim @@ -172,3 +172,11 @@ func Test_filter_display() bwipe! endfunc + +func Test_filter_scriptnames() + let lines = split(execute('filter /test_filter_cmd/ scriptnames'), "\n") + call assert_equal(1, len(lines)) + call assert_match('filter_cmd', lines[0]) +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |