fix(tui): actually fix mouse ansi codes leaking

This commit is contained in:
adamdotdevin 2025-07-11 06:00:20 -05:00
commit 22b244f847
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
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: