From 05041722f19f66c7b1c75095e13a9e86ca52f109 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 4 Jul 2016 12:15:47 -0700 Subject: [PATCH] Correct if condition --- src/xterm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xterm.js b/src/xterm.js index 3f0629a..6d77cbe 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -2858,8 +2858,8 @@ // scroll up this.ybase--; addToY++ - if (this.ydisp === 0) { - // Viewport is at the top of the buffer, much increase downwards + if (this.ydisp > 0) { + // Viewport is at the top of the buffer, must increase downwards this.ydisp--; } } else { -- 2.39.5