Revert "fix: truncate textinput placeholder (#442)" (#450)

This reverts commit 9a0ff2ba4d.
This commit is contained in:
Maas Lalani
2023-12-23 13:57:42 -05:00
committed by GitHub
parent 9a0ff2ba4d
commit fc50558f4b
+1 -5
View File
@@ -714,11 +714,7 @@ func (m Model) placeholderView() string {
v += m.Cursor.View()
// The rest of the placeholder text
var spaces []rune
for i := 0; i < m.Width-lipgloss.Width(string(p[1:m.Width])); i++ {
spaces = append(spaces, ' ')
}
v += style(string(append(p[1:m.Width], spaces...)))
v += style(string(p[1:]))
return m.PromptStyle.Render(m.Prompt) + v
}