diff src/testdir/test_quickfix.vim @ 19308:6fd567c927c0 v8.2.0212

patch 8.2.0212: missing search/substitute pattern hardly tested Commit: https://github.com/vim/vim/commit/07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 5 20:38:22 2020 +0100 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 #5579)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Feb 2020 20:45:04 +0100
parents 2ef19eed524a
children 102f9a44c8b3
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -2718,6 +2718,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