Fix #541 - Print double-click when --expect=double-click is set

This commit is contained in:
Junegunn Choi 2016-04-14 04:18:59 +09:00
parent 935e986be5
commit 74d1694be9

View File

@ -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 {