diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-05-06 14:21:17 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-05-06 14:22:23 -0400 |
commit | 0b4141ca6da9c3fe18a761536b82a219678f57d9 (patch) | |
tree | 980c9e7a60c0cfefedb53ae5613d8480d2af700b /src/commands/file_ops.rs | |
parent | fb065102f0e0469097a4b9d86bca3e1b89fc5eb4 (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.rs | 2 |
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(()) |