aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/compositor.rs
diff options
context:
space:
mode:
authorCharlie Groves2022-08-29 00:48:49 +0000
committerGitHub2022-08-29 00:48:49 +0000
commitf38ede8631b083c1c74d31b7658ad162d31c3972 (patch)
tree58e93b5bf7a330b9d60a2c1c5a52d67fcd32971f /helix-term/src/compositor.rs
parent51b62230da81913564692482d8f365e27d6f6cec (diff)
Add bracketed paste (#3233)
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r--helix-term/src/compositor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs
index bda38c59..c0898dae 100644
--- a/helix-term/src/compositor.rs
+++ b/helix-term/src/compositor.rs
@@ -29,7 +29,7 @@ pub struct Context<'a> {
pub trait Component: Any + AnyComponent {
/// Process input events, return true if handled.
- fn handle_event(&mut self, _event: Event, _ctx: &mut Context) -> EventResult {
+ fn handle_event(&mut self, _event: &Event, _ctx: &mut Context) -> EventResult {
EventResult::Ignored(None)
}
// , args: ()
@@ -157,10 +157,10 @@ impl Compositor {
Some(self.layers.remove(idx))
}
- pub fn handle_event(&mut self, event: Event, cx: &mut Context) -> bool {
+ pub fn handle_event(&mut self, event: &Event, cx: &mut Context) -> bool {
// If it is a key event and a macro is being recorded, push the key event to the recording.
if let (Event::Key(key), Some((_, keys))) = (event, &mut cx.editor.macro_recording) {
- keys.push(key);
+ keys.push(*key);
}
let mut callbacks = Vec::new();