m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

No need to query row position of the cursor if mouse is disabled

This commit is contained in:
Junegunn Choi
2017-01-10 22:55:55 +09:00
parent ae274158de
commit 0c127cfdc1

View File

@@ -185,8 +185,10 @@ func (r *LightRenderer) Init() {
r.csi(fmt.Sprintf("%dA", r.MaxY()-1))
r.csi("G")
// r.csi("s")
if r.mouse {
r.yoffset, _ = r.findOffset()
}
}
func (r *LightRenderer) move(y int, x int) {
// w.csi("u")