diff --git a/src/terminal.go b/src/terminal.go index c9db8ff..fb17ce5 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -602,6 +602,7 @@ func (t *Terminal) vmove(o int) { } else { t.cy += o } + t.cy = Max(0, Min(t.cy, t.merger.Length()-1)) } func maxItems() int {