diff options
Diffstat (limited to 'src/verb/internal_focus.rs')
-rw-r--r-- | src/verb/internal_focus.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/verb/internal_focus.rs b/src/verb/internal_focus.rs index b0f8426..19aab74 100644 --- a/src/verb/internal_focus.rs +++ b/src/verb/internal_focus.rs @@ -6,6 +6,7 @@ use { command::TriggerType, display::Screen, path, + path_anchor::PathAnchor, selection_type::SelectionType, task_sync::Dam, tree::TreeOptions, @@ -79,7 +80,7 @@ pub fn on_internal( // `:focus some/path`). // The given path may be relative hence the need for the // state's selection - let path = path::path_from(selected_path, arg); + let path = path::path_from(selected_path, PathAnchor::Unspecified, arg); let bang = input_invocation .map(|inv| inv.bang) .unwrap_or(internal_exec.bang); @@ -93,7 +94,7 @@ pub fn on_internal( // the :focus internal execution was triggered from the // input (which must be a kind of alias for :focus) // so we do exactly what the input asks for - let path = path::path_from(selected_path, input_arg); + let path = path::path_from(selected_path, PathAnchor::Unspecified, input_arg); let bang = input_invocation.bang || internal_exec.bang; return on_path(path, screen, tree_options, bang, con); } @@ -102,7 +103,7 @@ pub fn on_internal( // means the user wants to explore the arg with purpose // of selecting a path let base_dir = selected_path.to_string_lossy(); - let path = path::path_from(&*base_dir, input_arg); + let path = path::path_from(&*base_dir, PathAnchor::Unspecified, input_arg); let arg_type = SelectionType::Any; // We might do better later let purpose = PanelPurpose::ArgEdition { arg_type }; return new_panel_on_path(path, screen, tree_options, purpose, con, HDir::Right); |