diff options
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 611f896..e725009 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -1299,7 +1299,7 @@ impl LeaveMode { /// We only try to rename in the same directory, so it shouldn't be a problem. /// Filename is sanitized before processing. pub fn rename(tab: &mut Tab) -> Result<()> { - let original_path = if let Mode::Tree = tab.mode { + let original_path = if let Mode::Tree = tab.previous_mode { tab.tree.selected_path() } else { tab.path_content |