summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authoradamdotdevin <[email protected]>2025-07-11 06:00:20 -0500
committeradamdotdevin <[email protected]>2025-07-11 06:00:20 -0500
commit22b244f847d62a2e3a73db54db25eeb8646df410 (patch)
tree8c54a536e8d10d2d2c2ca3656861b08ad635df46 /packages
parent7e1fc275e70dcf068370d69f238d7749d5263d9a (diff)
downloadopencode-22b244f847d62a2e3a73db54db25eeb8646df410.tar.gz
opencode-22b244f847d62a2e3a73db54db25eeb8646df410.zip
fix(tui): actually fix mouse ansi codes leaking
Diffstat (limited to 'packages')
-rw-r--r--packages/tui/input/driver.go10
-rw-r--r--packages/tui/internal/tui/tui.go3
2 files changed, 5 insertions, 8 deletions
diff --git a/packages/tui/input/driver.go b/packages/tui/input/driver.go
index ded96e756..710d99da1 100644
--- a/packages/tui/input/driver.go
+++ b/packages/tui/input/driver.go
@@ -160,11 +160,11 @@ func (d *Reader) readEvents() ([]Event, error) {
}
switch ev.(type) {
- case UnknownEvent:
- // If the sequence is not recognized by the parser, try looking it up.
- if k, ok := d.table[string(buf[i:i+nb])]; ok {
- ev = KeyPressEvent(k)
- }
+ // case UnknownEvent:
+ // // If the sequence is not recognized by the parser, try looking it up.
+ // if k, ok := d.table[string(buf[i:i+nb])]; ok {
+ // ev = KeyPressEvent(k)
+ // }
case PasteStartEvent:
d.paste = []byte{}
case PasteEndEvent:
diff --git a/packages/tui/internal/tui/tui.go b/packages/tui/internal/tui/tui.go
index 512107ffe..389dd64f1 100644
--- a/packages/tui/internal/tui/tui.go
+++ b/packages/tui/internal/tui/tui.go
@@ -11,7 +11,6 @@ import (
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
- "github.com/charmbracelet/x/input"
"github.com/sst/opencode-sdk-go"
"github.com/sst/opencode/internal/app"
@@ -509,8 +508,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
a.editor.SetExitKeyInDebounce(false)
case dialog.FindSelectedMsg:
return a.openFile(msg.FilePath)
- case input.UnknownEvent:
- return a, nil
}
s, cmd := a.status.Update(msg)