Revert "Fix word wrap crash reported by user when pipe codes are in play"

This reverts commit 0a486d290f.
This commit is contained in:
Bryan Ashby 2018-02-04 10:39:14 -07:00
parent 1261af00c3
commit aecc24079f
2 changed files with 5 additions and 14 deletions

View file

@ -49,7 +49,7 @@ function wordWrapText(text, options) {
function appendWord() {
word.match(REGEXP_GOBBLE).forEach( w => {
renderLen = renderStringLength(w, { ansi : true, pipe : false } );
renderLen = renderStringLength(w);
if(result.renderLen[i] + renderLen > options.width) {
if(0 === i) {