Default renderLen array

This commit is contained in:
Bryan Ashby 2018-01-26 21:37:26 -07:00
parent 70b5d7a124
commit 3d575f7645
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function wordWrapText(text, options) {
let renderLen; let renderLen;
let i = 0; let i = 0;
let wordStart = 0; let wordStart = 0;
let result = { wrapped : [ '' ], renderLen : [] }; let result = { wrapped : [ '' ], renderLen : [ 0 ] };
function expandTab(column) { function expandTab(column) {
const remainWidth = options.tabWidth - (column % options.tabWidth); const remainWidth = options.tabWidth - (column % options.tabWidth);