diff options
author | qkzk <qu3nt1n@gmail.com> | 2024-02-29 17:27:11 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2024-02-29 17:28:03 +0100 |
commit | 82f7ee0a6d336f95ce6e07434ff09f5e68dc84a6 (patch) | |
tree | fa178f36efc534206b1403c061a5238b70ab2dd0 /src/event | |
parent | d1596573ae19b7ed299bd844d8e82d8534179c68 (diff) |
FIX: leaving (with escape) should reset the filter, not leave
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/event_exec.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/event/event_exec.rs b/src/event/event_exec.rs index ee8bad6..b053c7e 100644 --- a/src/event/event_exec.rs +++ b/src/event/event_exec.rs @@ -70,6 +70,12 @@ impl EventAction { /// Reset the inputs and completion, reset the window, exit the preview. pub fn reset_mode(status: &mut Status) -> Result<()> { if !matches!(status.current_tab().edit_mode, Edit::Nothing) { + if matches!( + status.current_tab().edit_mode, + Edit::InputSimple(InputSimple::Filter) + ) { + status.current_tab_mut().settings.reset_filter() + } if status.reset_edit_mode()? { status.tabs[status.index].refresh_view()?; } else { |