mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 09:24:55 +01:00
fix(tui): actually fix mouse ansi codes leaking
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user