From a6aebd6ae40855f3152f29ae56a122b5e71b3f41 Mon Sep 17 00:00:00 2001 From: temportalflux Date: Mon, 22 Jun 2026 16:45:55 -0400 Subject: [PATCH] render cursor even when there is no content so the user knows when they have focus in the element --- crates/gpui_elements/src/editable_text/shared_element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui_elements/src/editable_text/shared_element.rs b/crates/gpui_elements/src/editable_text/shared_element.rs index 0d093d81b5..13fbac94b3 100644 --- a/crates/gpui_elements/src/editable_text/shared_element.rs +++ b/crates/gpui_elements/src/editable_text/shared_element.rs @@ -391,7 +391,7 @@ pub trait EditableTextElement: InteractiveElement + EditableInputActionElement { } let is_focused = focus_handle.is_focused(window); - if !state.layout_data.lines_represent_placeholder && is_focused && cursor_visible { + if is_focused && cursor_visible { const CURSOR_WIDTH: f32 = 2.0; let quad = fill( Bounds::new(