Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 23778:8b682f6f3709 v8.2.2430
patch 8.2.2430: :vimgrep expands wildcards twice
Commit: https://github.com/vim/vim/commit/f8c6a1718007432812184c28495e8d27ee6c0395
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 18:09:06 2021 +0100
patch 8.2.2430: :vimgrep expands wildcards twice
Problem: :vimgrep expands wildcards twice.
Solution: Do not expand wildcards a second time.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jan 2021 18:15:04 +0100 |
parents | 97296182d336 |
children | 2a885d095bff |
comparison
equal
deleted
inserted
replaced
23777:047036413343 | 23778:8b682f6f3709 |
---|---|
2863 func Test_vimgrep() | 2863 func Test_vimgrep() |
2864 call XvimgrepTests('c') | 2864 call XvimgrepTests('c') |
2865 call XvimgrepTests('l') | 2865 call XvimgrepTests('l') |
2866 endfunc | 2866 endfunc |
2867 | 2867 |
2868 func Test_vimgrep_wildcards_expanded_once() | |
2869 new X[id-01] file.txt | |
2870 call setline(1, 'some text to search for') | |
2871 vimgrep text % | |
2872 bwipe! | |
2873 endfunc | |
2874 | |
2868 " Test for incsearch highlighting of the :vimgrep pattern | 2875 " Test for incsearch highlighting of the :vimgrep pattern |
2869 " This test used to cause "E315: ml_get: invalid lnum" errors. | 2876 " This test used to cause "E315: ml_get: invalid lnum" errors. |
2870 func Test_vimgrep_incsearch() | 2877 func Test_vimgrep_incsearch() |
2871 enew | 2878 enew |
2872 set incsearch | 2879 set incsearch |