summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/input.rs')
-rw-r--r--alacritty_terminal/src/input.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/alacritty_terminal/src/input.rs b/alacritty_terminal/src/input.rs
index bd1610a2..17d427cd 100644
--- a/alacritty_terminal/src/input.rs
+++ b/alacritty_terminal/src/input.rs
@@ -280,16 +280,16 @@ impl Action {
ctx.write_to_pty(s.clone().into_bytes())
},
Action::Copy => {
- ctx.copy_selection(ClipboardType::Primary);
+ ctx.copy_selection(ClipboardType::Clipboard);
},
Action::Paste => {
- let text = ctx.terminal_mut().clipboard().load(ClipboardType::Primary);
+ let text = ctx.terminal_mut().clipboard().load(ClipboardType::Clipboard);
self.paste(ctx, &text);
},
Action::PasteSelection => {
// Only paste if mouse events are not captured by an application
if !mouse_mode {
- let text = ctx.terminal_mut().clipboard().load(ClipboardType::Secondary);
+ let text = ctx.terminal_mut().clipboard().load(ClipboardType::Selection);
self.paste(ctx, &text);
}
},
@@ -939,9 +939,9 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
/// Copy text selection.
fn copy_selection(&mut self) {
if self.save_to_clipboard {
- self.ctx.copy_selection(ClipboardType::Primary);
+ self.ctx.copy_selection(ClipboardType::Clipboard);
}
- self.ctx.copy_selection(ClipboardType::Secondary);
+ self.ctx.copy_selection(ClipboardType::Selection);
}
}