summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-04-03 23:52:44 +0000
committerGitHub <noreply@github.com>2021-04-03 23:52:44 +0000
commitcbcc12944006603131119b73c2ad72ebccf4562d (patch)
tree3f323703c8ce47d1bf89c2e13f2c129b3e750683 /alacritty_terminal
parent531e494cf9a90de91dbbb84cb6cfc3158b78f1f2 (diff)
downloadalacritty-cbcc12944006603131119b73c2ad72ebccf4562d.tar.gz
alacritty-cbcc12944006603131119b73c2ad72ebccf4562d.zip
Add copy/paste/select hint actions
This adds some built-in actions for handling hint selections without having to spawn external applications. The new actions are `Copy`, `Select` and `Paste`.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/event.rs2
-rw-r--r--alacritty_terminal/src/event_loop.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs
index a1252570..70d16127 100644
--- a/alacritty_terminal/src/event.rs
+++ b/alacritty_terminal/src/event.rs
@@ -70,7 +70,7 @@ pub trait Notify {
/// Notify that an escape sequence should be written to the PTY.
///
/// TODO this needs to be able to error somehow.
- fn notify<B: Into<Cow<'static, [u8]>>>(&mut self, _: B);
+ fn notify<B: Into<Cow<'static, [u8]>>>(&self, _: B);
}
/// Types that are interested in when the display is resized.
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs
index 09c71668..c3224dfe 100644
--- a/alacritty_terminal/src/event_loop.rs
+++ b/alacritty_terminal/src/event_loop.rs
@@ -62,7 +62,7 @@ struct Writing {
pub struct Notifier(pub Sender<Msg>);
impl event::Notify for Notifier {
- fn notify<B>(&mut self, bytes: B)
+ fn notify<B>(&self, bytes: B)
where
B: Into<Cow<'static, [u8]>>,
{