Fix #1657: alt-0 to alt-9

This commit is contained in:
Junegunn Choi 2019-08-06 14:06:58 +09:00
parent 6577388250
commit 3b1e37f718
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -518,6 +518,9 @@ func (r *LightRenderer) escSequence(sz *int) Event {
if r.buffer[1] >= 'a' && r.buffer[1] <= 'z' {
return Event{AltA + int(r.buffer[1]) - 'a', 0, nil}
}
if r.buffer[1] >= '0' && r.buffer[1] <= '9' {
return Event{Alt0 + int(r.buffer[1]) - '0', 0, nil}
}
return Event{Invalid, 0, nil}
}