mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 15:18:29 +00:00
Fix double-click on light renderer
This commit is contained in:
parent
ec471a5bc2
commit
1fc1f47d80
@ -588,7 +588,8 @@ func (r *LightRenderer) mouseSequence(sz *int) Event {
|
||||
}
|
||||
r.prevDownTime = now
|
||||
} else {
|
||||
if len(r.clicks) > 1 && r.clicks[0][0] == r.clicks[1][0] && r.clicks[0][1] == r.clicks[1][1] &&
|
||||
n := len(r.clicks)
|
||||
if len(r.clicks) > 1 && r.clicks[n-2][0] == r.clicks[n-1][0] && r.clicks[n-2][1] == r.clicks[n-1][1] &&
|
||||
time.Since(r.prevDownTime) < doubleClickDuration {
|
||||
double = true
|
||||
if double {
|
||||
|
Loading…
x
Reference in New Issue
Block a user