Skip to content

Commit 65899a9

Browse files
authored
Update src/common/buffer/Buffer.ts
1 parent d7364fa commit 65899a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/buffer/Buffer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ export class Buffer implements IBuffer {
315315
}
316316

317317
private _reflowLarger(newCols: number, newRows: number): void {
318-
const toRemove: number[] = reflowLargerGetLinesToRemove(this.lines, this._cols, newCols, this.ybase + this.y, this.getNullCell(DEFAULT_ATTR_DATA), this._optionsService.rawOptions.reflowCursorLine);
318+
const reflowCursorLine = this._optionsService.rawOptions.reflowCursorLine;
319+
const toRemove: number[] = reflowLargerGetLinesToRemove(this.lines, this._cols, newCols, this.ybase + this.y, this.getNullCell(DEFAULT_ATTR_DATA), reflowCursorLine);
319320
if (toRemove.length > 0) {
320321
const newLayoutResult = reflowLargerCreateNewLayout(this.lines, toRemove);
321322
reflowLargerApplyNewLayout(this.lines, newLayoutResult.layout);

0 commit comments

Comments
 (0)