From 20ef00d998b34d6e6580a76cc3d952ee114de8e7 Mon Sep 17 00:00:00 2001 From: Joe Kralicky Date: Wed, 14 Jan 2026 17:47:21 -0500 Subject: [PATCH] fix(textinput): apply virtual cursor TextStyle on render --- textinput/textinput.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/textinput/textinput.go b/textinput/textinput.go index 363089b2..843da7ba 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -697,6 +697,7 @@ func (m Model) View() string { if pos < len(value) { //nolint:nestif char := m.echoTransform(string(value[pos])) + m.virtualCursor.TextStyle = styles.Text m.virtualCursor.SetChar(char) v += m.virtualCursor.View() // cursor and text under it v += styleText(m.echoTransform(string(value[pos+1:]))) // text after cursor @@ -710,10 +711,12 @@ func (m Model) View() string { v += m.virtualCursor.View() v += m.completionView(1) } else { + m.virtualCursor.TextStyle = styles.Text m.virtualCursor.SetChar(" ") v += m.virtualCursor.View() } } else { + m.virtualCursor.TextStyle = styles.Text m.virtualCursor.SetChar(" ") v += m.virtualCursor.View() }