From b80b5a94f99e1cdd2cbe020b14184a8ffb21fcef Mon Sep 17 00:00:00 2001 From: javacs3 Date: Tue, 17 Dec 2019 22:42:09 +0800 Subject: [PATCH] refactor: serialize-addon, rename _nextRow() to _rowEnd() --- addons/xterm-addon-serialize/src/SerializeAddon.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/xterm-addon-serialize/src/SerializeAddon.ts b/addons/xterm-addon-serialize/src/SerializeAddon.ts index 91ea1d26..468b9655 100644 --- a/addons/xterm-addon-serialize/src/SerializeAddon.ts +++ b/addons/xterm-addon-serialize/src/SerializeAddon.ts @@ -42,7 +42,7 @@ abstract class BaseSerializeHandler { } } - this._nextRow(row); + this._rowEnd(row); } this._serializeEnd(); @@ -52,7 +52,7 @@ abstract class BaseSerializeHandler { protected _nextCell(cell: IBufferCell, oldCell: IBufferCell, row: number, col: number): void { } - protected _nextRow(row: number): void { } + protected _rowEnd(row: number): void { } protected _serializeStart(rows: number): void { } @@ -75,7 +75,7 @@ class StringSerializeHandler extends BaseSerializeHandler { this._allRows = new Array(rows); } - protected _nextRow(row: number): void { + protected _rowEnd(row: number): void { this._allRows[this._rowIndex++] = this._currentRow; this._currentRow = ''; this._nullCellCount = 0;