summaryrefslogtreecommitdiffstats
path: root/src/event_exec.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-07 19:26:27 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-07 19:26:27 +0100
commitc449f53b02bdc2392f33a1303e85b50eaa72128f (patch)
tree44e67734b1446542c94b7ce35d304b8cf23a8df5 /src/event_exec.rs
parent77714cbf215de076a89f4d792b5693b1db48ef76 (diff)
refactor tree and users of tree
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r--src/event_exec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs
index dd467dd..c1fcbe4 100644
--- a/src/event_exec.rs
+++ b/src/event_exec.rs
@@ -1450,7 +1450,7 @@ impl LeaveMode {
/// Execute the selected node if it's a file else enter the directory.
pub fn tree(status: &mut Status) -> Result<()> {
- let path = status.selected_fileinfo()?.path;
+ let path = status.selected_non_mut().selected()?.path;
let is_dir = path.is_dir();
if is_dir {
status.selected().set_pathcontent(&path)?;