From 95827d4c49d290bcb56093e7476360b4c60a0075 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 19 Apr 2024 01:51:52 +0300 Subject: [PATCH] Fix the typo --- crates/terminal_view/src/terminal_view.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs index a6378e8c01..cc5c54eca9 100644 --- a/crates/terminal_view/src/terminal_view.rs +++ b/crates/terminal_view/src/terminal_view.rs @@ -185,7 +185,7 @@ impl TerminalView { self.has_bell } - pub fn clear_bel(&mut self, cx: &mut ViewContext) { + pub fn clear_bell(&mut self, cx: &mut ViewContext) { self.has_bell = false; cx.emit(Event::Wakeup); } @@ -332,7 +332,7 @@ impl TerminalView { } fn send_text(&mut self, text: &SendText, cx: &mut ViewContext) { - self.clear_bel(cx); + self.clear_bell(cx); self.terminal.update(cx, |term, _| { term.input(text.0.to_string()); }); @@ -340,7 +340,7 @@ impl TerminalView { fn send_keystroke(&mut self, text: &SendKeystroke, cx: &mut ViewContext) { if let Some(keystroke) = Keystroke::parse(&text.0).log_err() { - self.clear_bel(cx); + self.clear_bell(cx); self.terminal.update(cx, |term, cx| { term.try_keystroke(&keystroke, TerminalSettings::get_global(cx).option_as_meta); }); @@ -700,7 +700,7 @@ pub fn regex_search_for_query(query: &project::search::SearchQuery) -> Option) { - self.clear_bel(cx); + self.clear_bell(cx); self.pause_cursor_blinking(cx); self.terminal.update(cx, |term, cx| {