Update termenv and remove nil pointer workaround

This commit is contained in:
Christian Rocha
2020-02-24 22:31:26 -05:00
parent 05a2984fe2
commit aecd5ac8e2
3 changed files with 7 additions and 8 deletions

View File

@@ -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