Skip to content
Snippets Groups Projects
Commit 2d9b38b9 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Constrain cy in vmove()

parent b8a9861f
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment