@@ -260,7 +260,8 @@ function! s:IsRecursiveSearch()
260260 if g: EasyGrepRecursive
261261 return ! s: IsModeBuffers ()
262262 endif
263- return s: IsCommandAck ()
263+ let commandParams = s: GetGrepCommandParameters ()
264+ return has_key (commandParams, " isinherentlyrecursive" ) && (commandParams[" isinherentlyrecursive" ] == 1 )
264265endfunction
265266" }}}
266267" GetSavedName {{{
@@ -2399,6 +2400,7 @@ function! s:GetGrepCommandParameters()
23992400 \ ' backslashdir' : ' 0' ,
24002401 \ ' errorsuppress' : ' ' ,
24012402 \ ' directoryneedsbackslash' : ' 0' ,
2403+ \ ' isinherentlyrecursive' : ' 0' ,
24022404 \ }
24032405 elseif s: IsCommandGrep ()
24042406 return {
@@ -2416,6 +2418,7 @@ function! s:GetGrepCommandParameters()
24162418 \ ' backslashdir' : ' 0' ,
24172419 \ ' errorsuppress' : ' -s' ,
24182420 \ ' directoryneedsbackslash' : ' 0' ,
2421+ \ ' isinherentlyrecursive' : ' 0' ,
24192422 \ }
24202423 elseif s: IsCommandGitGrep ()
24212424 return {
@@ -2433,6 +2436,7 @@ function! s:GetGrepCommandParameters()
24332436 \ ' backslashdir' : ' 0' ,
24342437 \ ' errorsuppress' : ' ' ,
24352438 \ ' directoryneedsbackslash' : ' 0' ,
2439+ \ ' isinherentlyrecursive' : ' 0' ,
24362440 \ }
24372441 elseif s: IsCommandAck ()
24382442 return {
@@ -2450,6 +2454,7 @@ function! s:GetGrepCommandParameters()
24502454 \ ' backslashdir' : ' 0' ,
24512455 \ ' errorsuppress' : ' ' ,
24522456 \ ' directoryneedsbackslash' : ' 0' ,
2457+ \ ' isinherentlyrecursive' : ' 1' ,
24532458 \ }
24542459 elseif s: IsCommandPt ()
24552460 return {
@@ -2467,6 +2472,7 @@ function! s:GetGrepCommandParameters()
24672472 \ ' backslashdir' : ' 0' ,
24682473 \ ' errorsuppress' : ' ' ,
24692474 \ ' directoryneedsbackslash' : ' 0' ,
2475+ \ ' isinherentlyrecursive' : ' 0' ,
24702476 \ }
24712477 elseif s: IsCommandFindstr ()
24722478 return {
@@ -2484,6 +2490,7 @@ function! s:GetGrepCommandParameters()
24842490 \ ' backslashdir' : ' 1' ,
24852491 \ ' errorsuppress' : ' ' ,
24862492 \ ' directoryneedsbackslash' : ' 1' ,
2493+ \ ' isinherentlyrecursive' : ' 0' ,
24872494 \ }
24882495 endif
24892496 return {}
0 commit comments