We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916d57b commit 766f4feCopy full SHA for 766f4fe
plugin/EasyGrep.vim
@@ -708,8 +708,9 @@ function! s:AddAdditionalLocationsToFileTargetList(lst)
708
709
let newlst = []
710
for item in lst
711
- if s:IsRecursiveSearch() && s:IsCommandVimgrep() && fnamemodify(item, ":p") != item
712
- let str = "**/".item
+ if s:IsRecursiveSearch() && s:IsCommandVimgrep()
+ " Insert a recursive specifier into the command
713
+ let str = substitute(item, '/\([^/]\+\)$', '/**/\1', "")
714
else
715
let str = item
716
endif
@@ -753,6 +754,7 @@ function! s:ApplySearchDirectoriesToFileTargetList(fileTargets)
753
754
endfor
755
756
757
+
758
return newlst
759
endfunction
760
"}}}
0 commit comments