Constrain cy in vmove()
This commit is contained in:
parent
b8a9861f95
commit
2d9b38b93e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user