Fix reflow larger with wide chars

This commit is contained in:
Daniel Imms
2019-01-21 09:08:33 -08:00
parent 68197ed47b
commit 4843ca5bb8
3 changed files with 56 additions and 3 deletions
+4
View File
@@ -54,6 +54,10 @@ export class BufferLine implements IBufferLine {
];
}
public getWidth(index: number): number {
return this._data[index * CELL_SIZE + Cell.WIDTH];
}
public set(index: number, value: CharData): void {
this._data[index * CELL_SIZE + Cell.FLAGS] = value[0];
if (value[1].length > 1) {