From fc50558f4b1a6e646a1fdba4d6860a6c9a778e42 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Sat, 23 Dec 2023 13:57:42 -0500 Subject: [PATCH] Revert "fix: truncate textinput placeholder (#442)" (#450) This reverts commit 9a0ff2ba4dc3e7d7a8905b691c6af102ceb48238. --- textinput/textinput.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/textinput/textinput.go b/textinput/textinput.go index 55e63df..964d28f 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -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 }