summaryrefslogtreecommitdiff
path: root/src/tui/light.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-02-24 01:43:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-02-24 01:43:19 +0900
commitdca56da0ef8589d6e7d00c5aaa073d9adb2dd650 (patch)
tree036f277a9e4335fb1268b2829be58a931680c1f0 /src/tui/light.go
parentec75d16ea8f28768336f6f4a6992e3f838bc18fd (diff)
downloadfzf-dca56da0ef8589d6e7d00c5aaa073d9adb2dd650.tar.gz
Add 'insert' key for --bind
Close #1744
Diffstat (limited to 'src/tui/light.go')
-rw-r--r--src/tui/light.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 02f12d0f..05f87e6f 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -453,7 +453,10 @@ func (r *LightRenderer) escSequence(sz *int) Event {
*sz = 4
switch r.buffer[2] {
case 50:
- if len(r.buffer) == 5 && r.buffer[4] == 126 {
+ if r.buffer[3] == 126 {
+ return Event{Insert, 0, nil}
+ }
+ if len(r.buffer) > 4 && r.buffer[4] == 126 {
*sz = 5
switch r.buffer[3] {
case 48: