From 261e76e0a3e3996a22817f5be9bebc949d673346 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Fri, 20 Jun 2025 07:31:45 -0500 Subject: fix(tui): input feels laggy --- packages/tui/internal/components/textarea/textarea.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'packages/tui/internal/components') diff --git a/packages/tui/internal/components/textarea/textarea.go b/packages/tui/internal/components/textarea/textarea.go index 0110ae824..6646d2a97 100644 --- a/packages/tui/internal/components/textarea/textarea.go +++ b/packages/tui/internal/components/textarea/textarea.go @@ -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...) } -- cgit v1.2.3