summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-06 14:59:07 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-06 14:59:07 +0100
commitc699b0a150fae351e4a7b80d644654b9986a98dd (patch)
tree534470ef1543b47a2d421f8b47ecc130ea517abe /src/tab.rs
parent818ffa4aa6ba561fc3f5f56ad09949bca70bfd50 (diff)
FIX: enter a dir from normal mode shouldn't set mode tree
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tab.rs b/src/tab.rs
index e1600a0..94f1b38 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -193,13 +193,15 @@ impl Tab {
/// Move to the currently selected directory.
/// Fail silently if the current directory is empty or if the selected
/// file isn't a directory.
- pub fn go_to_child(&mut self) -> Result<()> {
+ pub fn go_to_selected_dir(&mut self) -> Result<()> {
+ log::info!("go to selected");
let childpath = &self
.path_content
.selected()
.context("Empty directory")?
.path
.clone();
+ log::info!("selected : {childpath:?}");
self.set_pathcontent(childpath)?;
self.window.reset(self.path_content.content.len());
self.input.cursor_start();