fix: move to last line on accept

This commit is contained in:
Carlos Alexandro Becker
2024-11-26 14:17:28 -05:00
committed by Christian Rocha
parent 4755f88132
commit 56f7197cd3
+1
View File
@@ -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()
}
}