mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
Don't try and color placeholder text with color of ""
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ func placeholderView(m Model) string {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Cursor
|
// Cursor
|
||||||
if m.blink {
|
if m.blink && m.PlaceholderColor != "" {
|
||||||
v += cursor(
|
v += cursor(
|
||||||
termenv.String(p[:1]).
|
termenv.String(p[:1]).
|
||||||
Foreground(color(c)).
|
Foreground(color(c)).
|
||||||
|
|||||||
Reference in New Issue
Block a user