diff options
author | Canop <cano.petrole@gmail.com> | 2020-07-25 11:11:55 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-07-25 11:11:55 +0200 |
commit | 564528170fcac15399cac60a2fc013635702d3a9 (patch) | |
tree | 858ceb903e5eb65654c139175561061773dfb0ca /src/browser/browser_state.rs | |
parent | 4cf0e4652780d4ace522e23b8f4c0ced378dd528 (diff) |
filtering in preview now interrupted by key events
which makes it more convenient to type long patterns in huge
files: no need to wait between keys
Diffstat (limited to 'src/browser/browser_state.rs')
-rw-r--r-- | src/browser/browser_state.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/browser/browser_state.rs b/src/browser/browser_state.rs index 6d5b342..c9f16ba 100644 --- a/src/browser/browser_state.rs +++ b/src/browser/browser_state.rs @@ -347,13 +347,12 @@ impl AppState for BrowserState { } } - fn on_pattern( &mut self, pat: InputPattern, _con: &AppContext, ) -> Result<AppStateCmdResult, ProgramError> { - if !pat.is_some() { + if pat.is_none() { self.filtered_tree = None; } self.pending_pattern = pat; |