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

pull/794/head
Junegunn Choi 7 years ago
parent ae274158de
commit 0c127cfdc1
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

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

Loading…
Cancel
Save