From 8220b37c4fabc3d146097743aaf58f889c5419b8 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 14 Jul 2022 17:25:17 -0700 Subject: [PATCH] Method rename --- crates/terminal/src/terminal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 7963c40792..2ed4567706 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -57,7 +57,7 @@ actions!( ///Initialize and register all of our action handlers pub fn init(cx: &mut MutableAppContext) { //Global binding overrrides - cx.add_action(Terminal::send_ctrl_c); + cx.add_action(Terminal::ctrl_c); cx.add_action(Terminal::up); cx.add_action(Terminal::down); cx.add_action(Terminal::escape); @@ -204,7 +204,7 @@ impl Terminal { } ///Synthesize the keyboard event corresponding to 'ctrl-c' - fn send_ctrl_c(&mut self, _: &CtrlC, cx: &mut ViewContext) { + fn ctrl_c(&mut self, _: &CtrlC, cx: &mut ViewContext) { self.connection.update(cx, |connection, _| { connection.try_keystroke(&Keystroke::parse("ctrl-c").unwrap()); });