patch 8.2.2430: :vimgrep expands wildcards twice
Problem: :vimgrep expands wildcards twice.
Solution: Do not expand wildcards a second time.
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim
index 1799f29..6826acf 100644
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -2865,6 +2865,13 @@
call XvimgrepTests('l')
endfunc
+func Test_vimgrep_wildcards_expanded_once()
+ new X[id-01] file.txt
+ call setline(1, 'some text to search for')
+ vimgrep text %
+ bwipe!
+endfunc
+
" Test for incsearch highlighting of the :vimgrep pattern
" This test used to cause "E315: ml_get: invalid lnum" errors.
func Test_vimgrep_incsearch()