mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-09 22:56:15 +00:00
fix: move to last line on accept
This commit is contained in:
@@ -1018,6 +1018,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
||||
if ok && key.Matches(keyMsg, m.KeyMap.AcceptSuggestion) {
|
||||
if m.canAcceptSuggestion() {
|
||||
m.value = m.matchedSuggestions[m.currentSuggestionIndex]
|
||||
m.row = len(m.value) - 1
|
||||
m.CursorEnd()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user