From d012797c6962a0fee43cf40a7933eb7eaf4d14bd Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sat, 1 Feb 2020 22:40:42 -0500 Subject: [PATCH] Don't try and color placeholder text with color of "" --- input/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input.go b/input/input.go index a06da6c..0142f39 100644 --- a/input/input.go +++ b/input/input.go @@ -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)).