summaryrefslogtreecommitdiffstats
path: root/src/commands/file_ops.rs
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2021-05-06 14:21:17 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2021-05-06 14:22:23 -0400
commit0b4141ca6da9c3fe18a761536b82a219678f57d9 (patch)
tree980c9e7a60c0cfefedb53ae5613d8480d2af700b /src/commands/file_ops.rs
parentfb065102f0e0469097a4b9d86bca3e1b89fc5eb4 (diff)
change pwd to cwd
- fix issue where folder preview is not loaded upon tab_switch if the preview entry did not previously exist in history
Diffstat (limited to 'src/commands/file_ops.rs')
-rw-r--r--src/commands/file_ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/file_ops.rs b/src/commands/file_ops.rs
index e260e62..38fac7b 100644
--- a/src/commands/file_ops.rs
+++ b/src/commands/file_ops.rs
@@ -36,7 +36,7 @@ pub fn copy(context: &mut AppContext) -> JoshutoResult<()> {
pub fn paste(context: &mut AppContext, options: IoWorkerOptions) -> JoshutoResult<()> {
match context.take_local_state() {
Some(state) if !state.paths.is_empty() => {
- let dest = context.tab_context_ref().curr_tab_ref().pwd().to_path_buf();
+ let dest = context.tab_context_ref().curr_tab_ref().cwd().to_path_buf();
let worker_thread = IoWorkerThread::new(state.file_op, state.paths, dest, options);
context.add_worker(worker_thread);
Ok(())