Skip to content

Commit 97f867b

Browse files
committed
Version 1.11 (April 28, 2013)
1 parent c27a827 commit 97f867b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

plugin/grep.vim

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" File: grep.vim
22
" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
3-
" Version: 1.10
4-
" Last Modified: April 20, 2013
3+
" Version: 1.11
4+
" Last Modified: April 24, 2013
55
"
66
" Overview
77
" --------
@@ -197,7 +197,11 @@
197197
" :let Agrep_Path = 'd:\tools\agrep.exe'
198198
"
199199
" The 'Grep_Find_Path' variable is used to locate the find utility. By
200-
" default, this is set to d:\tools\find.exe. You can change this using the let
200+
" default, this is set to 'find'. Note that on MS-Windows, there is a find.exe
201+
" that is part of the base OS. This find utility is different from the the
202+
" Unix find utility. You cannot use this utility with this plugin. You must
203+
" install the Unix compatible find utility and set the Grep_Find_Path variable
204+
" to point to the location of the utility. You can change this using the let
201205
" command:
202206
"
203207
" :let Grep_Find_Path = 'd:\tools\find.exe'
@@ -499,7 +503,11 @@ function! s:RunGrepRecursive(cmd_name, grep_cmd, action, ...)
499503
let pattern = g:Grep_Shell_Quote_Char . a:{argcnt} .
500504
\ g:Grep_Shell_Quote_Char
501505
else
502-
let filepattern = filepattern . " " . a:{argcnt}
506+
if filepattern != ""
507+
let filepattern = filepattern . " " . a:{argcnt}
508+
else
509+
let filepattern = a:{argcnt}
510+
endif
503511
endif
504512
let argcnt= argcnt + 1
505513
endwhile

0 commit comments

Comments
 (0)