aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_quickfix.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-08 10:34:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-12 05:36:33 +0800
commiteea6a4f2a0ad089e0f92dfbc54c92d88c9fea51e (patch)
tree811c70520a6b9874d7b86f316f290aae40cb6063 /src/nvim/testdir/test_quickfix.vim
parente71cc4a8dc2698038d4a92a8afe216aa891d67bc (diff)
downloadrneovim-eea6a4f2a0ad089e0f92dfbc54c92d88c9fea51e.tar.gz
rneovim-eea6a4f2a0ad089e0f92dfbc54c92d88c9fea51e.tar.bz2
rneovim-eea6a4f2a0ad089e0f92dfbc54c92d88c9fea51e.zip
vim-patch:8.2.{0212,0250}
vim-patch:8.2.0212: missing search/substitute pattern hardly tested Problem: Missing search/substitute pattern hardly tested. Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan, closes vim/vim#5579) https://github.com/vim/vim/commit/07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe vim-patch:8.2.0250: test_clear_search_pat() is unused Problem: test_clear_search_pat() is unused. Solution: Remove the function. (Yegappan Lakshmanan, closes vim/vim#5624) https://github.com/vim/vim/commit/4f5776c17cd86f904a7e2f92db297c73e28939b7
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
-rw-r--r--src/nvim/testdir/test_quickfix.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index 4f83c45770..db49242972 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -2858,6 +2858,10 @@ func XvimgrepTests(cchar)
call assert_equal(0, getbufinfo('Xtestfile1')[0].loaded)
call assert_equal([], getbufinfo('Xtestfile2'))
+ " Test with the last search pattern not set
+ call test_clear_search_pat()
+ call assert_fails('Xvimgrep // *', 'E35:')
+
call delete('Xtestfile1')
call delete('Xtestfile2')
endfunc