1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-30 22:23:44 +02:00

progress on after contexts

This commit is contained in:
Andrew Gallant
2016-09-03 01:11:14 -04:00
parent 062aa5ef76
commit c2b5577cba
2 changed files with 175 additions and 22 deletions

View File

@ -245,6 +245,8 @@ impl Worker {
searcher = searcher.count(self.args.flag_count);
searcher = searcher.line_number(self.args.flag_line_number);
searcher = searcher.invert_match(self.args.flag_invert_match);
searcher = searcher.after_context(
self.args.flag_after_context);
searcher = searcher.before_context(
self.args.flag_before_context);
if let Err(err) = searcher.run() {