Reflow combined chars

This commit is contained in:
Daniel Imms
2018-12-31 10:18:38 -08:00
parent 1612cec3e0
commit db488ebcc9
2 changed files with 24 additions and 0 deletions
+9
View File
@@ -319,6 +319,15 @@ export class BufferLine implements IBufferLine {
}
}
}
// Move any combined data over as needed
const srcCombinedKeys = Object.keys(src._combined);
for (let i = 0; i < srcCombinedKeys.length; i++) {
const key = parseInt(srcCombinedKeys[i], 10);
if (key >= srcCol) {
this._combined[key - srcCol + destCol] = src._combined[key];
}
}
}
public translateToString(trimRight: boolean = false, startCol: number = 0, endCol: number = this.length): string {