Skip to content

Commit 766f4fe

Browse files
committed
More intermediary edits
1 parent 916d57b commit 766f4fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/EasyGrep.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,9 @@ function! s:AddAdditionalLocationsToFileTargetList(lst)
708708

709709
let newlst = []
710710
for item in lst
711-
if s:IsRecursiveSearch() && s:IsCommandVimgrep() && fnamemodify(item, ":p") != item
712-
let str = "**/".item
711+
if s:IsRecursiveSearch() && s:IsCommandVimgrep()
712+
" Insert a recursive specifier into the command
713+
let str = substitute(item, '/\([^/]\+\)$', '/**/\1', "")
713714
else
714715
let str = item
715716
endif
@@ -753,6 +754,7 @@ function! s:ApplySearchDirectoriesToFileTargetList(fileTargets)
753754
endfor
754755
endif
755756
endfor
757+
756758
return newlst
757759
endfunction
758760
"}}}

0 commit comments

Comments
 (0)