fix(tui): input feels laggy

This commit is contained in:
adamdottv 2025-06-20 07:31:45 -05:00
parent a300bfaccb
commit 261e76e0a3
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 35 additions and 37 deletions

View file

@ -1161,8 +1161,6 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}
var cmd tea.Cmd
cmds = append(cmds, cmd)
newRow, newCol := m.cursorLineNumber(), m.col
m.virtualCursor, cmd = m.virtualCursor.Update(msg)
if (newRow != oldRow || newCol != oldCol) && m.virtualCursor.Mode() == cursor.CursorBlink {
@ -1171,7 +1169,6 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}
cmds = append(cmds, cmd)
m.SetHeight(m.ContentHeight())
return m, tea.Batch(cmds...)
}