diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 06:24:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 06:24:29 +0800 |
| commit | daa49b525e5c55958e9854cd463a763791e6600b (patch) | |
| tree | 7203add5f3ae1ca1dcc32334beb5f985543cb37c /src/nvim/testdir/test_quickfix.vim | |
| parent | 5c3bbb67e7c59b2fa18e37fdd9845a0e7e3381db (diff) | |
| parent | 27fd17a79cd2c51e71077bdd896635188ad711b5 (diff) | |
| download | rneovim-daa49b525e5c55958e9854cd463a763791e6600b.tar.gz rneovim-daa49b525e5c55958e9854cd463a763791e6600b.tar.bz2 rneovim-daa49b525e5c55958e9854cd463a763791e6600b.zip | |
Merge pull request #19320 from zeertzjq/vim-8.2.0212
vim-patch:8.2.{0212,0243,0250}: insufficient tests
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 4f83c45770..9881deaa45 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -2891,6 +2891,21 @@ func Test_vimgrep_incsearch() set noincsearch endfunc +" Test vimgrep with the last search pattern not set +func Test_vimgrep_with_no_last_search_pat() + let lines =<< trim [SCRIPT] + call assert_fails('vimgrep // *', 'E35:') + call writefile(v:errors, 'Xresult') + qall! + [SCRIPT] + call writefile(lines, 'Xscript') + if RunVim([], [], '--clean -S Xscript') + call assert_equal([], readfile('Xresult')) + endif + call delete('Xscript') + call delete('Xresult') +endfunc + " Test vimgrep without swap file func Test_vimgrep_without_swap_file() let lines =<< trim [SCRIPT] |