summaryrefslogtreecommitdiffstats
path: root/src/tui/light.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/light.go')
-rw-r--r--src/tui/light.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 379680c1..574d161e 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -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) {