aboutsummaryrefslogtreecommitdiff
path: root/src/app/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/actions.rs')
-rw-r--r--src/app/actions.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/actions.rs b/src/app/actions.rs
index 777245da..340d3089 100644
--- a/src/app/actions.rs
+++ b/src/app/actions.rs
@@ -324,8 +324,7 @@ impl AppState {
None => return,
};
- if let Ok(parser) = rt.parser.read() {
- let text = crate::selection::extract_text(parser.screen(), sel);
+ if let Some(text) = rt.extract_selection(sel) {
if !text.is_empty() {
crate::selection::write_osc52(&text);
info!(len = text.len(), "copied selection to clipboard");