Start to wrap up 0.0.7-alpha
This commit is contained in:
@@ -554,31 +554,12 @@ function MultiLineEditTextView(options) {
|
||||
text = strUtil.splitTextAtTerms(text);
|
||||
|
||||
let index = 0;
|
||||
// let wrapped;
|
||||
|
||||
text.forEach(line => {
|
||||
self.setTextLines( [ line ], index, true); // true=termWithEol
|
||||
index += 1;
|
||||
});
|
||||
|
||||
/*
|
||||
text.forEach(line => {
|
||||
if(strUtil.isAnsiLine(line)) {
|
||||
self.setTextLines( [ line ], index, true); // true=termWithEol
|
||||
index += 1;
|
||||
} else {
|
||||
wrapped = self.wordWrapSingleLine(
|
||||
line, // line to wrap
|
||||
'expand', // tabHandling
|
||||
self.dimens.width
|
||||
).wrapped;
|
||||
|
||||
self.setTextLines(wrapped, index, true); // true=termWithEol
|
||||
index += wrapped.length;
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
self.cursorStartOfDocument();
|
||||
|
||||
if(cb) {
|
||||
|
||||
Reference in New Issue
Block a user