diff options
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/preview/preview_state.rs | 9 |
4 files changed, 13 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 09602f3..1046332 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### v1.16.1 - 2022-10-13 +<a name="v1.16.1"></a> +- fix ctrl-left not usable anymore in filtered preview to remove filtering + ### v1.16.0 - 2022-10-07 <a name="v1.16.0"></a> - status messages now displayed on toggling (for example showing hidden files) @@ -140,7 +140,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "broot" -version = "1.16.0" +version = "1.16.1" dependencies = [ "ahash 0.7.6", "ansi_colours", @@ -1,6 +1,6 @@ [package] name = "broot" -version = "1.16.0" +version = "1.16.1" authors = ["dystroy <denys.seguret@gmail.com>"] repository = "https://github.com/Canop/broot" homepage = "https://dystroy.org/broot" diff --git a/src/preview/preview_state.rs b/src/preview/preview_state.rs index 003eb0f..da8de0d 100644 --- a/src/preview/preview_state.rs +++ b/src/preview/preview_state.rs @@ -374,11 +374,16 @@ impl PanelState for PreviewState { self.pending_pattern = self.removed_pattern.take(); Ok(CmdResult::Keep) } - Internal::panel_left_no_open => Ok(CmdResult::HandleInApp(Internal::panel_left_no_open)), + Internal::panel_left_no_open if self.removed_pattern.is_some() => { + self.pending_pattern = self.removed_pattern.take(); + Ok(CmdResult::Keep) + } Internal::panel_right if self.filtered_preview.is_some() => { self.on_pattern(InputPattern::none(), app_state, con) } - Internal::panel_right_no_open => Ok(CmdResult::HandleInApp(Internal::panel_right_no_open)), + Internal::panel_right_no_open if self.filtered_preview.is_some() => { + self.on_pattern(InputPattern::none(), app_state, con) + } Internal::select_first => { self.mut_preview().select_first(); Ok(CmdResult::Keep) |