summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/textarea
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-06-20 07:31:45 -0500
committeradamdottv <[email protected]>2025-06-20 07:31:45 -0500
commit261e76e0a3e3996a22817f5be9bebc949d673346 (patch)
treebfe908b168128714e8f44f41bcefee52103c89b1 /packages/tui/internal/components/textarea
parenta300bfaccb64779be2990496894630027eef42a6 (diff)
downloadopencode-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.go3
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...)
}