From 58b1c58bc59e82ea05dfa5f4dfce8111c4e2995a Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:26:50 -0500 Subject: fix(tui): clear command priority --- packages/tui/internal/components/chat/editor.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/tui/internal/components') diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.go index f4e6ab2f9..071f22d0e 100644 --- a/packages/tui/internal/components/chat/editor.go +++ b/packages/tui/internal/components/chat/editor.go @@ -30,6 +30,7 @@ type EditorComponent interface { Content(width int) string Lines() int Value() string + Length() int Focused() bool Focus() (tea.Model, tea.Cmd) Blur() @@ -295,6 +296,10 @@ func (m *editorComponent) Value() string { return m.textarea.Value() } +func (m *editorComponent) Length() int { + return m.textarea.Length() +} + func (m *editorComponent) Submit() (tea.Model, tea.Cmd) { value := strings.TrimSpace(m.Value()) if value == "" { -- cgit v1.2.3