Do not wait for more keystrokes after double escape characters

Close #1393
This commit is contained in:
Junegunn Choi 2018-09-27 15:54:04 +09:00
parent 0d748a0699
commit 72df905902
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -381,6 +381,8 @@ func (r *LightRenderer) escSequence(sz *int) Event {
alt = true
}
switch r.buffer[1] {
case ESC:
return Event{ESC, 0, nil}
case 32:
return Event{AltSpace, 0, nil}
case 47: