Firefox complains throws warnings when "Strict Mode" is turned on. This pull request fixes two of those: Warning: TypeError: variable data redeclares argument Source File: chrome://sieve/content/libs/CodeMirror/lib/codemirror.js Line: 845,Column: 8 Source Code: var data = data || measureLine(cm, line), dir = -1; Warning: TypeError: variable spec redeclares argument Source File: chrome://sieve/content/libs/CodeMirror/lib/codemirror.js Line: 2870, Column: 8 Source Code: var spec = CodeMirror.resolveMode(spec);
Regression introduced in 984e155.
Pasting in a 120k-character line caused two problems - The textarea, when wrap=off is set, simply cuts off anything after char 57444. Removing the wrap attribute fixed this. - Text nodes longer then (again) 57444 seem not to be rendered beyond that character unless wrapped. A hack was added to slice up spans that were too long. Also removes the 'stop highlighting at character 5000' hack, since that appears to be the least of our worries (highlighting is much faster than rendering/layouting). Closes #1080
And promptly broke CodeMirror in the process. Issue #1050