Fix another error about impossible wrap

This commit is contained in:
Mmis1000
2020-09-18 22:02:30 +08:00
parent aee1629c25
commit 47be9a2df4
2 changed files with 51 additions and 4 deletions
@@ -181,6 +181,11 @@ class StringSerializeHandler extends BaseSerializeHandler {
rowSeparator += `\x1b[${this._nullCellCount}X`;
rowSeparator += `\x1b[${currentLine.length - this._nullCellCount}D`;
rowSeparator += '\x1b[B';
// This is content even it is invisible
// without this, wrap will be missing
this._lastContentCursorRow = row + 1;
this._lastContentCursorCol = 0;
}
// force commit the cursor position