fix: api test fail due to IBufferCell api changes

This commit is contained in:
javacs3
2020-02-04 14:46:03 +08:00
parent 8924437fc5
commit c512e48c52
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ async function sumWidths(start: number, end: number, sentinel: string): Promise<
if (!cell) {
break;
}
window.result += cell.width;
if (cell.char === '${sentinel}') {
window.result += cell.getWidth();
if (cell.getChars() === '${sentinel}') {
return;
}
}