mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #50 from blink1073/fix-resize
Use shift() when reducing lines to preserve lines up to cursor
This commit is contained in:
+2
-2
@@ -2520,10 +2520,10 @@
|
||||
} else if (j > y) {
|
||||
while (j-- > y) {
|
||||
if (this.lines.length > y + this.ybase) {
|
||||
this.lines.pop();
|
||||
this.lines.shift();
|
||||
}
|
||||
if (this.children.length > y) {
|
||||
el = this.children.pop();
|
||||
el = this.children.shift();
|
||||
if (!el) continue;
|
||||
el.parentNode.removeChild(el);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user