diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-09-22 22:17:45 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-09-22 22:17:45 +0200 |
commit | 545c18abe476580be85c1504ff19ef6fbfc4466a (patch) | |
tree | 210b4bf9a5d587d1bd765d15e869475b7b526a4e /src/event_exec.rs | |
parent | 7a1d26e9be8976cdf42714be8535d7e33fbfa887 (diff) |
FIX: exiting a preview doesn't refresh
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 0950534..3762615 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -158,8 +158,11 @@ impl EventAction { /// Leave current mode to normal mode. /// Reset the inputs and completion, reset the window, exit the preview. pub fn reset_mode(tab: &mut Tab) -> Result<()> { - tab.reset_mode(); - tab.refresh_params() + if tab.reset_mode() { + tab.refresh_view() + } else { + tab.refresh_params() + } } /// Enter a copy paste mode. /// A confirmation is asked before copying all flagged files to |