summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-05-09 17:45:11 +0200
committerCanop <cano.petrole@gmail.com>2021-05-09 17:45:11 +0200
commit88410cdf95881aaa1df67c4bddd171a9b61c0be7 (patch)
tree7e0b0537fd5d5a8b7ee262e05fc42a4137378b84 /src/display
parent8932923694f5890a7ad0cb8e90679e4246d8617a (diff)
match line count in selection on content searches
when a content search has been done, opening a file with a compatible command (like the standard `:edit`) opens on the first line with a match
Diffstat (limited to 'src/display')
-rw-r--r--src/display/displayable_tree.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display/displayable_tree.rs b/src/display/displayable_tree.rs
index ca8e9ab..28ab478 100644
--- a/src/display/displayable_tree.rs
+++ b/src/display/displayable_tree.rs
@@ -567,7 +567,8 @@ impl<'a, 's, 't> DisplayableTree<'a, 's, 't> {
}
if cw.allowed > 8 && pattern_object.content {
- let extract = tree.options.pattern.pattern.search_content(&line.path, cw.allowed - 2);
+ let extract = tree.options.pattern.pattern
+ .search_content(&line.path, cw.allowed - 2);
if let Some(extract) = extract {
self.write_content_extract(cw, extract, selected)?;
}