Permalink
Browse files

If ag is run with paths specified, don't search stdin. This fixes #57.

  • Loading branch information...
1 parent 69c1ea8 commit 7fa435a106859864ad2b1b1e86ff74961ec94f03 @ggreer committed Sep 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/options.c
View
2 src/options.c
@@ -362,6 +362,8 @@ void parse_options(int argc, char **argv, char **paths[]) {
(*paths)[i] = path;
}
(*paths)[i] = NULL;
+ /* Make sure we search these paths instead of stdin. */
+ opts.search_stream = 0;
}
else {
path = strdup(".");

0 comments on commit 7fa435a

Please sign in to comment.