(pattern: String)
| 18 | |
| 19 | impl GlobToolView { |
| 20 | pub fn new(pattern: String) -> Self { |
| 21 | Self { |
| 22 | pattern, |
| 23 | matches: None, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | pub fn render(&self, frame: &mut Frame, area: Rect, theme: &Theme) { |
| 28 | let count = self.matches.as_ref().map(|m| m.len()).unwrap_or(0); |