diff options
author | Canop <cano.petrole@gmail.com> | 2021-04-30 16:22:41 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-04-30 16:22:41 +0200 |
commit | 0025ac27cc25c43d2bf2c086ced09a5dca5cfde1 (patch) | |
tree | 6c8bc6f44198838f43c8798fc32f8b064de92f2c /src/app | |
parent | 7702b4a0de2a15d86bc5e17056102c675d1e4761 (diff) |
fix bad reset of filtering state in case of emptied prefixed patterns
Fix #379
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/panel.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/app/panel.rs b/src/app/panel.rs index 26dcf32..1c9daa5 100644 --- a/src/app/panel.rs +++ b/src/app/panel.rs @@ -78,7 +78,6 @@ impl Panel { let result = self.states[state_idx].on_command(w, app_state, &cc); let has_previous_state = self.states.len() > 1; self.status = self.state().get_status(app_state, &cc, has_previous_state); - debug!("result in panel {:?}: {:?}", &self.id, &result); result } @@ -102,21 +101,6 @@ impl Panel { self.status = self.state().get_status(app_state, &cc, has_previous_state); } - /// execute all the pending tasks until there's none remaining or - /// the dam asks for interruption - pub fn do_pending_tasks( - &mut self, - screen: Screen, - con: &AppContext, - dam: &mut Dam, - ) -> Result<bool, ProgramError> { - let mut did_something = false; - while self.mut_state().get_pending_task().is_some() & !dam.has_event() { - self.mut_state().do_pending_task(screen, con, dam); - did_something = true; - } - Ok(did_something) - } /// do the next pending task stopping as soon as there's an event /// in the dam |