summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tui/light.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 95e7bfd0..a1234166 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -920,7 +920,12 @@ func (w *LightWindow) fill(str string, onMove func()) FillReturn {
}
}
}
- if w.posx >= w.Width()-1 {
+ if w.posx+1 >= w.Width() {
+ if w.posy+1 >= w.height {
+ return FillSuspend
+ }
+ w.Move(w.posy+1, 0)
+ onMove()
return FillNextLine
}
return FillContinue