diff --git a/exec/load/scrollbox.js b/exec/load/scrollbox.js
index 27464aa5600eb503fa65f3bee1d71904d4de8b0b..a2b5345e652309b5fc8c79b39ac8e84c0edb1bda 100644
--- a/exec/load/scrollbox.js
+++ b/exec/load/scrollbox.js
@@ -116,7 +116,7 @@ ScrollBox.prototype.scroll_into_view = function (n) {
 }
 
 ScrollBox.prototype._redraw = function (n) {
-    if (this.wrap_map[n].index < this.y || this.wrap_map[n].index >= this.y + this.height) return;
+    if (this.wrap_map[n].index < this.y || this.wrap_map[n].index > this.y + this.height) return;
     for (var i = 0; i < this.wrap_map[n].rows; i++) {
         console.gotoxy(1, this.y1 + this.wrap_map[n].index - this.y + i);
         console.clearline();