From 10a9b1a6715e69ccf06d6556e327da07d53e46e7 Mon Sep 17 00:00:00 2001 From: Dmytro Banin Date: Thu, 6 Aug 2026 22:56:54 -0700 Subject: [PATCH 1/2] smear-cursor via ghostty shaders by enabling hardware cursor --- helix-term/src/ui/editor.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 3bd66f9413ff..b90968f6c888 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1736,10 +1736,11 @@ impl Component for EditorView { fn cursor(&self, _area: Rect, editor: &Editor) -> (Option, CursorKind) { match editor.cursor() { - // all block cursors are drawn manually + // block cursors are also drawn manually, but keep the terminal + // cursor visible so terminals can still track it for effects (pos, CursorKind::Block) => { if self.terminal_focused { - (pos, CursorKind::Hidden) + (pos, CursorKind::Block) } else { // use terminal cursor when terminal loses focus (pos, CursorKind::Underline) From 7967d76efb8b3c66dfd63debb44de714df54b703 Mon Sep 17 00:00:00 2001 From: Dmytro Banin Date: Fri, 7 Aug 2026 09:20:33 -0700 Subject: [PATCH 2/2] update comment --- helix-term/src/ui/editor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index b90968f6c888..ae712cbc464e 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1736,8 +1736,7 @@ impl Component for EditorView { fn cursor(&self, _area: Rect, editor: &Editor) -> (Option, CursorKind) { match editor.cursor() { - // block cursors are also drawn manually, but keep the terminal - // cursor visible so terminals can still track it for effects + // keep hardware cursor visible for terminal shader effects (pos, CursorKind::Block) => { if self.terminal_focused { (pos, CursorKind::Block)