aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/copy_mode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/input/copy_mode.rs')
-rw-r--r--src/app/input/copy_mode.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/app/input/copy_mode.rs b/src/app/input/copy_mode.rs
index e6c0d074..6c967133 100644
--- a/src/app/input/copy_mode.rs
+++ b/src/app/input/copy_mode.rs
@@ -22,15 +22,7 @@ impl App {
}
self.state
.handle_copy_mode_key(&self.terminal_runtimes, key);
- if let Some(content) = self.state.request_clipboard_write.take() {
- if self
- .event_tx
- .try_send(crate::events::AppEvent::ClipboardWrite { content })
- .is_err()
- {
- tracing::warn!("failed to queue clipboard write event");
- }
- }
+ self.dispatch_pending_clipboard_write();
}
}