summaryrefslogtreecommitdiffstats
path: root/src/search_buffer.rs
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-07 21:54:28 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-07 21:54:28 -0400
commit0042dce9498ed0e0d46e3e7cd86b85dcb822c8e1 (patch)
tree2e881bc552ef58856d28cc8714029400e4f37451 /src/search_buffer.rs
parentca058d7584ddc16d88a8dbff90b89cae8fca6e90 (diff)
Hack in Windows console coloring.0.0.11
The code has suffered and needs refactoring/commenting. BUT... IT WORKS!
Diffstat (limited to 'src/search_buffer.rs')
-rw-r--r--src/search_buffer.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search_buffer.rs b/src/search_buffer.rs
index 48ff1ba0..24ece447 100644
--- a/src/search_buffer.rs
+++ b/src/search_buffer.rs
@@ -144,6 +144,7 @@ mod tests {
use std::path::Path;
use grep::{Grep, GrepBuilder};
+ use term::Terminal;
use printer::Printer;
@@ -197,7 +198,7 @@ fn main() {
&mut pp, &grep, test_path(), haystack.as_bytes());
map(searcher).run()
};
- (count, String::from_utf8(pp.into_inner()).unwrap())
+ (count, String::from_utf8(pp.into_inner().into_inner()).unwrap())
}
#[test]