Constrain cy in vmove()

This commit is contained in:
Junegunn Choi 2015-01-10 14:22:00 +09:00
parent b8a9861f95
commit 2d9b38b93e

View File

@ -602,6 +602,7 @@ func (t *Terminal) vmove(o int) {
} else { } else {
t.cy += o t.cy += o
} }
t.cy = Max(0, Min(t.cy, t.merger.Length()-1))
} }
func maxItems() int { func maxItems() int {