Merge remote-tracking branch 'origin/master' into bugfix/scrolling_updates

This commit is contained in:
Nathan Byrd
2023-09-26 21:50:04 +00:00
5 changed files with 11 additions and 7 deletions

View File

@@ -1050,7 +1050,7 @@ exports.FullScreenEditorModule =
posView.setText(
_.padStart(String(pos.row + 1), 2, '0') +
',' +
_.padEnd(String(pos.col + 1), 2, '0')
_.padStart(String(pos.col + 1), 2, '0')
);
this.client.term.rawWrite(ansi.restorePos());
}

View File

@@ -179,6 +179,10 @@ TextView.prototype.setText = function (text, redraw) {
};
TextView.prototype.clearText = function () {
if (this.text) {
this.setText(this.fillChar.repeat(this.text.length));
}
this.setText('');
};