From a83e4549e8066e8c1b50f2bb0dd5095a10b0abbb Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Fri, 27 Oct 2017 15:15:14 +0200 Subject: [PATCH] Scroll region is inclusive --- js/term/debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/term/debug.js b/js/term/debug.js index 3ae76a5..21a9960 100644 --- a/js/term/debug.js +++ b/js/term/debug.js @@ -251,8 +251,8 @@ module.exports = function attachDebugger (screen, connection) { ctx.stroke() ctx.beginPath() - ctx.moveTo(0, end * cellSize.height) - ctx.lineTo(width * cellSize.width, end * cellSize.height) + ctx.moveTo(0, (end + 1) * cellSize.height) + ctx.lineTo(width * cellSize.width, (end + 1) * cellSize.height) ctx.stroke() ctx.restore()