summaryrefslogtreecommitdiffstats
path: root/src/commands/file_ops.rs
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2021-05-06 23:28:20 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2021-05-06 23:28:20 -0400
commit12a3377378f0a2fa453597df9a14f49b4fa16411 (patch)
treec292c73a3e606d77c95b9563a9c66e5ce8fa6c54 /src/commands/file_ops.rs
parentc1a5adeee57db49cae3027c959cb9c4f29a69e71 (diff)
move worker stuff to its own context struct
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 38fac7b..831acee 100644
--- a/src/commands/file_ops.rs
+++ b/src/commands/file_ops.rs
@@ -38,7 +38,7 @@ pub fn paste(context: &mut AppContext, options: IoWorkerOptions) -> JoshutoResul
Some(state) if !state.paths.is_empty() => {
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);
+ context.worker_context_mut().push(worker_thread);
Ok(())
}
_ => Err(JoshutoError::new(