diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-06 14:59:07 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-06 14:59:07 +0100 |
commit | c699b0a150fae351e4a7b80d644654b9986a98dd (patch) | |
tree | 534470ef1543b47a2d421f8b47ecc130ea517abe /src/tab.rs | |
parent | 818ffa4aa6ba561fc3f5f56ad09949bca70bfd50 (diff) |
FIX: enter a dir from normal mode shouldn't set mode tree
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |