summaryrefslogtreecommitdiffstats
path: root/src/context
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-24 14:50:21 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-24 17:39:25 -0500
commit5d91e4bcd50d21b40d41ab50341771154cd26594 (patch)
treed0c0bfa8ef8bf136b62ae2f07dbf41d2607e72d5 /src/context
parentc97e1f7d6fe530c9b688d42cad82ee41f52b2a7b (diff)
fix cut/copy src not updating after paste
Diffstat (limited to 'src/context')
-rw-r--r--src/context/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context/context.rs b/src/context/context.rs
index 95c9d1d..bb5a512 100644
--- a/src/context/context.rs
+++ b/src/context/context.rs
@@ -126,7 +126,7 @@ impl JoshutoContext {
let tx = self.get_event_tx();
if let Some(worker) = self.worker_queue.pop_front() {
- let src = worker.paths[0].clone();
+ let src = worker.paths[0].parent().unwrap().to_path_buf();
let dest = worker.dest.clone();
let handle = thread::spawn(move || {
let (wtx, wrx) = mpsc::channel();