diff options
-rw-r--r-- | src/local/container.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/container.nim b/src/local/container.nim index dfda1f49..da33a9fb 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -1017,7 +1017,7 @@ proc cursorRightEdge(container: Container) {.jsfunc.} = container.setCursorX(container.fromx + container.width - 1) proc scrollDown*(container: Container, n = 1) {.jsfunc.} = - let H = container.numLines - 1 + let H = container.numLines let y = min(container.fromy + container.height + n, H) - container.height if y > container.fromy: container.setFromY(y) |