Skip to content

Commit

Permalink
Revert "fix: truncate textinput placeholder (#442)"
Browse files Browse the repository at this point in the history
This reverts commit 9a0ff2b.
  • Loading branch information
maaslalani authored Dec 23, 2023
1 parent 9a0ff2b commit bb31905
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions textinput/textinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bb31905

Please sign in to comment.