From 0feb656664910bb395962b2eec8e9918183a271e Mon Sep 17 00:00:00 2001 From: Yin Jifeng Date: Wed, 24 Jul 2024 10:57:31 +0800 Subject: [PATCH] typo `visible` --- crates/ui/src/input/blink_cursor.rs | 2 +- crates/ui/src/webview.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui/src/input/blink_cursor.rs b/crates/ui/src/input/blink_cursor.rs index 901d8232..c1aaae35 100644 --- a/crates/ui/src/input/blink_cursor.rs +++ b/crates/ui/src/input/blink_cursor.rs @@ -5,7 +5,7 @@ use gpui::{ModelContext, Timer}; /// To manage the Input cursor blinking. /// /// It will start blinking with a interval of 500ms. -/// Every loop will notify the view to update the `visable`, and Input will observe this update to touch repaint. +/// Every loop will notify the view to update the `visible`, and Input will observe this update to touch repaint. /// /// The input painter will check if this in visible state, then it will draw the cursor. pub struct BlinkCursor { diff --git a/crates/ui/src/webview.rs b/crates/ui/src/webview.rs index 16d92ea9..0ce97375 100644 --- a/crates/ui/src/webview.rs +++ b/crates/ui/src/webview.rs @@ -17,7 +17,7 @@ pub fn init(_cx: &AppContext) {} pub struct WebView { focus_handle: FocusHandle, webview: Rc, - visable: bool, + visible: bool, } impl WebView { @@ -26,7 +26,7 @@ impl WebView { Self { focus_handle: cx.focus_handle(), - visable: true, + visible: true, webview: Rc::new(webview), } } @@ -40,7 +40,7 @@ impl WebView { } pub fn visible(&self) -> bool { - self.visable + self.visible } /// Go back in the webview history.