diff options
author | Canop <cano.petrole@gmail.com> | 2021-08-29 21:21:47 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-08-29 21:21:47 +0200 |
commit | d6ceba05642982674ee80bd8bccd25980dab9e8c (patch) | |
tree | fd0626430a4a2fb25d33ae56f8ec6b4923ae200a /src/display/matched_string.rs | |
parent | ee354f9a7a2684783456b10707462f71045b1c3e (diff) |
move some fit/crop utilities from broot's code to termimad
Diffstat (limited to 'src/display/matched_string.rs')
-rw-r--r-- | src/display/matched_string.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/display/matched_string.rs b/src/display/matched_string.rs index d37b366..8f962a0 100644 --- a/src/display/matched_string.rs +++ b/src/display/matched_string.rs @@ -15,6 +15,7 @@ pub struct MatchedString<'a> { } impl<'a, 'w> MatchedString<'a> { + pub fn new( name_match: Option<NameMatch>, string: &'a str, |