summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2023-11-30 11:52:53 +0100
committerCanop <cano.petrole@gmail.com>2023-11-30 11:52:53 +0100
commitcc9446f1b7b4cb7f3480384c959a0a9ae3467c25 (patch)
tree9eb10dd767f059045fcf748820cb4ed66a14a0f5 /src
parente0e886af409f7df78bffa2529ccbc373ec392192 (diff)
remove filter on :panel_right on directory
Diffstat (limited to 'src')
-rw-r--r--src/verb/internal_focus.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/verb/internal_focus.rs b/src/verb/internal_focus.rs
index 50e9565..f267411 100644
--- a/src/verb/internal_focus.rs
+++ b/src/verb/internal_focus.rs
@@ -7,6 +7,7 @@ use {
command::TriggerType,
display::Screen,
path::{self, PathAnchor},
+ pattern::InputPattern,
preview::PreviewState,
task_sync::Dam,
tree::TreeOptions,
@@ -52,7 +53,7 @@ pub fn new_state_on_path(
pub fn new_panel_on_path(
path: PathBuf,
screen: Screen,
- tree_options: TreeOptions,
+ mut tree_options: TreeOptions,
purpose: PanelPurpose,
con: &AppContext,
direction: HDir,
@@ -66,6 +67,9 @@ pub fn new_panel_on_path(
}
} else {
let path = path::closest_dir(&path);
+ // We remove the pattern on opening another browser. This will probably
+ // be configuratble with a clear_pattern verb option in the future
+ tree_options.pattern = InputPattern::none();
match BrowserState::new(path, tree_options, screen, con, &Dam::unlimited()) {
Ok(os) => CmdResult::NewPanel {
state: Box::new(os),