Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 935e986 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/terminal.go+3 added-1 removed
709 unmodified lines
710 t.input = append(t.input[:t.cx], after...)711}712713func keyMatch(key int, event C.Event) bool {714 return event.Type == key || event.Type == C.Rune && int(event.Char) == key-C.AltZ714 return event.Type == key ||715 event.Type == C.Rune && int(event.Char) == key-C.AltZ ||716 event.Type == C.Mouse && key == C.DoubleClick && event.MouseEvent.Double717}718719func quoteEntry(entry string) string {720 return fmt.Sprintf("%q", entry)
448 unmodified lines