mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
chore(deps): update
This commit is contained in:
@@ -706,7 +706,7 @@ func (m Model) placeholderView() string {
|
||||
style = m.PlaceholderStyle.Inline(true).Render
|
||||
)
|
||||
|
||||
p := make([]rune, m.Width+1)
|
||||
p := make([]rune, m.Width()+1)
|
||||
copy(p, []rune(m.Placeholder))
|
||||
|
||||
m.Cursor.TextStyle = m.PlaceholderStyle
|
||||
|
||||
@@ -34,6 +34,6 @@ func Test_CurrentSuggestion(t *testing.T) {
|
||||
func Test_SlicingOutsideCap(t *testing.T) {
|
||||
textinput := New()
|
||||
textinput.Placeholder = "作業ディレクトリを指定してください"
|
||||
textinput.Width = 32
|
||||
textinput.SetWidth(32)
|
||||
textinput.View()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user