From: irokas Date: Sun, 2 Jul 2017 21:04:36 +0000 (+0300) Subject: Set minimum scrollback value to number of rows if needed on resize X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0a5d7a7bd2f159e747ceed5e59c3a6e359dd8ca2;p=mirror_xterm.js.git Set minimum scrollback value to number of rows if needed on resize --- diff --git a/src/xterm.js b/src/xterm.js index f81085e..a8a76fb 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1915,6 +1915,10 @@ Terminal.prototype.resize = function(x, y) { return; } + if (y > this.getOption('scrollback')) { + this.setOption('scrollback', y) + } + var line , el , i