]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Create new entries when shifting
authorDaniel Imms <daimms@microsoft.com>
Sat, 20 May 2017 02:11:28 +0000 (19:11 -0700)
committerDaniel Imms <daimms@microsoft.com>
Sat, 20 May 2017 02:11:28 +0000 (19:11 -0700)
src/utils/CircularList.ts

index 1a698ff0c934a61e7967ad97b88e1833299d3de4..bc6932600028157bf37259d8fb307b1dbc1d4ea2 100644 (file)
@@ -197,7 +197,10 @@ export class CircularList<T> extends EventEmitter {
 
     if (offset > 0) {
       for (let i = count - 1; i >= 0; i--) {
-        this._setEntry(start + i + offset, this.getEntry(start + i));
+        this._setEntry(start + i + offset, {
+          id: this._nextId++,
+          value: this.get(start + i)
+        });
       }
       const expandListBy = (start + count + offset) - this._length;
       if (expandListBy > 0) {