Permalink
Browse files

Fixed #12 on github.

  • Loading branch information...
1 parent fa7d979 commit e3b63fd5cebf4f3b419d7cba24e906076198026b @nschum committed Dec 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 full-ack.el
View
@@ -364,7 +364,8 @@ This can be used in `ack-root-directory-functions'."
(push "-i" arguments))
(unless regexp
(push "--literal" arguments))
- (push (format "--context=%d" ack-context) arguments)
+ (when (and ack-context (/= ack-context 0))
+ (push (format "--context=%d" ack-context) arguments))
arguments))
(defun ack-run (directory regexp &rest arguments)

0 comments on commit e3b63fd

Please sign in to comment.