diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-04-14 04:18:59 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-04-14 04:18:59 +0900 |
commit | 74d1694be93d4edbeb38b34f7f531d4b0909f2c1 (patch) | |
tree | 102586f699893495a7289867828630a6672cb95e | |
parent | 935e986be5fe3d6c9ca6fa578d836500a3b31525 (diff) |
Fix #541 - Print double-click when --expect=double-click is set
-rw-r--r-- | src/terminal.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index d95cfad3..cd9ca934 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -711,7 +711,9 @@ func (t *Terminal) rubout(pattern string) { } func keyMatch(key int, event C.Event) bool { - return event.Type == key || event.Type == C.Rune && int(event.Char) == key-C.AltZ + return event.Type == key || + event.Type == C.Rune && int(event.Char) == key-C.AltZ || + event.Type == C.Mouse && key == C.DoubleClick && event.MouseEvent.Double } func quoteEntry(entry string) string { |