diff options
| author | adamdottv <[email protected]> | 2025-06-20 07:31:45 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-20 07:31:45 -0500 |
| commit | 261e76e0a3e3996a22817f5be9bebc949d673346 (patch) | |
| tree | bfe908b168128714e8f44f41bcefee52103c89b1 /packages/tui/internal/components/textarea | |
| parent | a300bfaccb64779be2990496894630027eef42a6 (diff) | |
| download | opencode-261e76e0a3e3996a22817f5be9bebc949d673346.tar.gz opencode-261e76e0a3e3996a22817f5be9bebc949d673346.zip | |
fix(tui): input feels laggy
Diffstat (limited to 'packages/tui/internal/components/textarea')
| -rw-r--r-- | packages/tui/internal/components/textarea/textarea.go | 3 |
1 files changed, 0 insertions, 3 deletions
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...) } |
