Don't try and color placeholder text with color of ""

This commit is contained in:
Christian Rocha
2020-02-01 22:40:42 -05:00
parent c1b503585d
commit d012797c69

View File

@@ -128,7 +128,7 @@ func placeholderView(m Model) string {
)
// Cursor
if m.blink {
if m.blink && m.PlaceholderColor != "" {
v += cursor(
termenv.String(p[:1]).
Foreground(color(c)).