Ignore controls chars for bracketed paste mode

Close #594
pull/595/head
Junegunn Choi 8 years ago
parent d91c3a2f5e
commit b8737b724b
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -486,6 +486,11 @@ func escSequence(sz *int) Event {
return Event{F10, 0, nil}
}
}
// Bracketed paste mode \e[200~ / \e[201
if _buf[3] == 48 && (_buf[4] == 48 || _buf[4] == 49) && _buf[5] == 126 {
*sz = 6
return Event{Invalid, 0, nil}
}
return Event{Invalid, 0, nil} // INS
case 51:
return Event{Del, 0, nil}

Loading…
Cancel
Save