summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2018-09-27 15:54:04 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2018-09-28 10:33:53 +0900
commit72df90590245d7bf30085030bff6b0c04e5a7c40 (patch)
treefa11bc7ccafb26941a014fa945ac0f9a7c0d9faf
parent0d748a0699760003444efca219eb4bb245996008 (diff)
Do not wait for more keystrokes after double escape characters
Close #1393
-rw-r--r--src/tui/light.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 83527df3..edeb621c 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -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: