mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 19:20:41 +02:00
Start to wrap up 0.0.7-alpha
This commit is contained in:
parent
b1b841674c
commit
7fd0d6e699
6 changed files with 3 additions and 22 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue