diff options
Diffstat (limited to 'src/tree_build/builder.rs')
-rw-r--r-- | src/tree_build/builder.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tree_build/builder.rs b/src/tree_build/builder.rs index 37e406b..c091879 100644 --- a/src/tree_build/builder.rs +++ b/src/tree_build/builder.rs @@ -447,7 +447,10 @@ impl<'c> TreeBuilder<'c> { pub fn build(mut self, total_search: bool, dam: &Dam) -> Option<Tree> { match self.gather_lines(total_search, dam) { Some(out_blines) => { - self.trim_excess(&out_blines); + debug!("blines before trimming: {}", out_blines.len()); + if !self.total_search { + self.trim_excess(&out_blines); + } Some(self.take(&out_blines)) } None => None, // interrupted |