mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
Merge remote-tracking branch 'origin/master' into v2-exp
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user