fix(tui): actually fix mouse ansi codes leaking
This commit is contained in:
parent
7e1fc275e7
commit
22b244f847
2 changed files with 5 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue