bug fix on empty lines (trimmed) causing infinite loop

editor-split
Fabien Benetou 2 years ago
parent 90050fa547
commit bcd14747c3
  1. 1
      index.html

@ -2562,6 +2562,7 @@ function addCodeEditor(page="jxr console.log('hello world')", language="javascri
let potentialine = content.slice(pos, pos+width) let potentialine = content.slice(pos, pos+width)
forcedLines += line.trim() + '\n' forcedLines += line.trim() + '\n'
pos+=line.length pos+=line.length
if (line.length==0) pos++
line = '' line = ''
} }

Loading…
Cancel
Save