fix(tui): actually fix mouse ansi codes leaking

This commit is contained in:
adamdotdevin
2025-07-11 06:00:20 -05:00
parent 7e1fc275e7
commit 22b244f847
2 changed files with 5 additions and 8 deletions

View File

@@ -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: