We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 540c8ac commit f53b3d9Copy full SHA for f53b3d9
1 file changed
textinput/textinput.go
@@ -705,16 +705,16 @@ func (m Model) View() string {
705
func (m Model) placeholderView() string {
706
var (
707
v string
708
- p = m.Placeholder
+ p = []rune(m.Placeholder)
709
style = m.PlaceholderStyle.Inline(true).Render
710
)
711
712
m.Cursor.TextStyle = m.PlaceholderStyle
713
- m.Cursor.SetChar(p[:1])
+ m.Cursor.SetChar(string(p[:1]))
714
v += m.Cursor.View()
715
716
// The rest of the placeholder text
717
- v += style(p[1:])
+ v += style(string(p[1:]))
718
719
return m.PromptStyle.Render(m.Prompt) + v
720
}
0 commit comments