summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-07-08 19:26:50 -0500
committeradamdottv <[email protected]>2025-07-08 19:26:50 -0500
commit58b1c58bc59e82ea05dfa5f4dfce8111c4e2995a (patch)
treee222192b78d9c05d0242febc71e6f1563c178a98 /packages/tui/internal/components
parentd80badc50ffc127c35e48c8d2be34d5cd79e2c77 (diff)
downloadopencode-58b1c58bc59e82ea05dfa5f4dfce8111c4e2995a.tar.gz
opencode-58b1c58bc59e82ea05dfa5f4dfce8111c4e2995a.zip
fix(tui): clear command priority
Diffstat (limited to 'packages/tui/internal/components')
-rw-r--r--packages/tui/internal/components/chat/editor.go5
1 files changed, 5 insertions, 0 deletions
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 == "" {