diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-10-11 22:12:50 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-10-11 22:12:50 +0200 |
commit | a91d92ae6bad3c866a30c0ae0b91c302c9b33b01 (patch) | |
tree | 76d820cdf1391d9613941ee9944a8ac1801fcaed /src/event_exec.rs | |
parent | 727f64c6a2dc385e28fbf54d686cdbe28b5daebf (diff) |
better name for current path -> current directory path
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 69525ca..2b1b113 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -432,7 +432,7 @@ impl EventAction { /// Basic folders (/, /dev... $HOME) and mount points (even impossible to /// visit ones) are proposed. pub fn shortcut(tab: &mut Tab) -> Result<()> { - std::env::set_current_dir(tab.current_path())?; + std::env::set_current_dir(tab.current_directory_path())?; tab.shortcut.update_git_root(); tab.set_mode(Mode::Navigate(Navigate::Shortcut)); Ok(()) @@ -1561,7 +1561,7 @@ impl LeaveMode { let (username, hostname, remote_path) = (strings[0], strings[1], strings[2]); let current_path: &str = tab - .current_path() + .current_directory_path() .to_str() .context("couldn't parse the path")?; let first_arg = &format!("{username}@{hostname}:{remote_path}"); |