]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Set minimum scrollback value to number of rows if needed on resize
authorirokas <akasidiari@inf.uth.gr>
Sun, 2 Jul 2017 21:04:36 +0000 (00:04 +0300)
committerirokas <akasidiari@inf.uth.gr>
Sun, 2 Jul 2017 21:10:18 +0000 (21:10 +0000)
src/xterm.js

index f81085e7602aaf95975951b410be918374ef1d09..a8a76fb92da13887025458b8673a7a6931185416 100644 (file)
@@ -1915,6 +1915,10 @@ Terminal.prototype.resize = function(x, y) {
     return;
   }
 
+  if (y > this.getOption('scrollback')) {
+    this.setOption('scrollback', y)
+  }
+
   var line
   , el
   , i