summaryrefslogtreecommitdiff
path: root/src/tui
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-19 06:22:35 +0200
committerJunegunn Choi <junegunn.c@gmail.com>2019-07-19 13:22:35 +0900
commita1260feeed0cc565dfe3cca9927e1f21af7c80ef (patch)
tree86d3d6b279b5f8a2174cfb55bf895482780cc5a1 /src/tui
parent7322504ad07297bf44b6a7e2b8ac7a363928e6d7 (diff)
downloadfzf-a1260feeed0cc565dfe3cca9927e1f21af7c80ef.tar.gz
Code cleanup (#1640)
- Replaced time.Now().Sub() with time.Since() - Replaced unnecessary string/byte slice conversions - Removed obsolete return and value assignment in range loop
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/light.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 2c2dc004..4ca956c4 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -547,7 +547,7 @@ func (r *LightRenderer) mouseSequence(sz *int) Event {
r.prevDownTime = now
} else {
if len(r.clickY) > 1 && r.clickY[0] == r.clickY[1] &&
- time.Now().Sub(r.prevDownTime) < doubleClickDuration {
+ time.Since(r.prevDownTime) < doubleClickDuration {
double = true
}
}