Fix #541 - Print double-click when --expect=double-click is set
This commit is contained in:
parent
935e986be5
commit
74d1694be9
@ -711,7 +711,9 @@ func (t *Terminal) rubout(pattern string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func keyMatch(key int, event C.Event) bool {
|
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 {
|
func quoteEntry(entry string) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user