fix(cursor): apply TextStyle inline (#230)

Co-authored-by: Maas Lalani <maas@lalani.dev>
This commit is contained in:
Raphael 'kena' Poss 2022-09-07 22:05:25 +02:00 committed by GitHub
parent 8b3bfee06d
commit 062b257e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ func (m *Model) SetChar(char string) {
// View displays the cursor.
func (m Model) View() string {
if m.Blink {
return m.TextStyle.Render(m.char)
return m.TextStyle.Inline(true).Render(m.char)
}
return m.Style.Inline(true).Reverse(true).Render(m.char)
}