mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-10 14:16:41 +03:00
Update termenv and remove nil pointer workaround
This commit is contained in:
@@ -183,13 +183,12 @@ func placeholderView(m Model) string {
|
||||
func cursorView(s string, m Model) string {
|
||||
if m.blink {
|
||||
return s
|
||||
} else if m.CursorColor != "" {
|
||||
} else {
|
||||
return termenv.String(s).
|
||||
Foreground(m.colorProfile.Color(m.CursorColor)).
|
||||
Reverse().
|
||||
String()
|
||||
}
|
||||
return termenv.String(s).Reverse().String()
|
||||
}
|
||||
|
||||
// Subscription
|
||||
|
Reference in New Issue
Block a user