Fix term width/height in ansiPrep()
This commit is contained in:
parent
a28c1a82d8
commit
88777c6723
|
@ -554,8 +554,14 @@ function MultiLineEditTextView(options) {
|
||||||
text = strUtil.splitTextAtTerms(text);
|
text = strUtil.splitTextAtTerms(text);
|
||||||
|
|
||||||
let index = 0;
|
let index = 0;
|
||||||
let wrapped;
|
// let wrapped;
|
||||||
|
|
||||||
|
text.forEach(line => {
|
||||||
|
self.setTextLines( [ line ], index, true); // true=termWithEol
|
||||||
|
index += 1;
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
text.forEach(line => {
|
text.forEach(line => {
|
||||||
if(strUtil.isAnsiLine(line)) {
|
if(strUtil.isAnsiLine(line)) {
|
||||||
self.setTextLines( [ line ], index, true); // true=termWithEol
|
self.setTextLines( [ line ], index, true); // true=termWithEol
|
||||||
|
@ -571,6 +577,7 @@ function MultiLineEditTextView(options) {
|
||||||
index += wrapped.length;
|
index += wrapped.length;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
self.cursorStartOfDocument();
|
self.cursorStartOfDocument();
|
||||||
|
|
||||||
|
@ -586,8 +593,8 @@ function MultiLineEditTextView(options) {
|
||||||
ansiPrep(
|
ansiPrep(
|
||||||
ansi,
|
ansi,
|
||||||
{
|
{
|
||||||
termWidth : this.client.termWidth,
|
termWidth : this.client.term.termWidth,
|
||||||
termHeight : this.client.termHeight,
|
termHeight : this.client.term.termHeight,
|
||||||
cols : this.dimens.width,
|
cols : this.dimens.width,
|
||||||
rows : 'auto',
|
rows : 'auto',
|
||||||
startCol : this.position.col,
|
startCol : this.position.col,
|
||||||
|
|
Loading…
Reference in New Issue