Merge remote-tracking branch 'origin/master' into v2-exp

This commit is contained in:
Carlos Alexandro Becker
2025-03-31 14:20:56 -03:00
11 changed files with 40 additions and 17 deletions
+4 -2
View File
@@ -1,3 +1,5 @@
// Package textinput provides a text input component for Bubble Tea
// applications.
package textinput
import (
@@ -165,7 +167,7 @@ func New() Model {
}
}
// SetWidth sets the width of the text input.
// Width returns the width of the text input.
func (m Model) Width() int {
return m.width
}
@@ -797,7 +799,7 @@ func (m *Model) MatchedSuggestions() []string {
return m.getSuggestions(m.matchedSuggestions)
}
// CurrentSuggestion returns the currently selected suggestion index.
// CurrentSuggestionIndex returns the currently selected suggestion index.
func (m *Model) CurrentSuggestionIndex() int {
return m.currentSuggestionIndex
}