fixed bug in dir-grep

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-07-20 21:32:48 -04:00
parent 1e9841055e
commit a7ff8fac4d
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class DirOpen(Method):
class DirGrep(Method):
args = [Argument('pattern', datatype="str", prompt="Pattern: ")]
def _execute(self, w, **vargs):
cmd = 'grep -rEl "%s" %r' % (vargs['pattern'], w.buffer.path)
cmd = 'grep -rEl -- "%s" %r' % (vargs['pattern'], w.buffer.path)
(status, output) = commands.getstatusoutput(cmd)
paths = []