fix: move to last line on accept

This commit is contained in:
Carlos Alexandro Becker
2024-10-11 11:32:29 -04:00
committed by Christian Rocha
parent 96d064b036
commit 9307f6e430
+1
View File
@@ -997,6 +997,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()
}
}