The open source coding agent.
TypeScript
fix(tui): editor width issues
adamdottv90face1c0915
diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.goindex 72357941d55..0ac3978a8aa 100644--- a/packages/tui/internal/components/chat/editor.go+++ b/packages/tui/internal/components/chat/editor.go@@ -182,8 +182,6 @@ func (m *editorComponent) GetSize() (width, height int) {func (m *editorComponent) SetSize(width, height int) tea.Cmd {m.width = widthm.height = height- m.textarea.SetWidth(width - 5) // account for the prompt and padding right- // m.textarea.SetHeight(height - 4)return nil}@@ -329,10 +327,11 @@ func createTextArea(existing *textarea.Model) textarea.Model {ta.Prompt = " "ta.ShowLineNumbers = falseta.CharLimit = -1+ ta.SetWidth(layout.Current.Container.Width - 6)if existing != nil {ta.SetValue(existing.Value())- ta.SetWidth(existing.Width())+ // ta.SetWidth(existing.Width())ta.SetHeight(existing.Height())}