mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 20:56:54 +00:00
1 parent
52d7e6892b
commit
2d30ac21a7
4 files changed
+12
-10
No files matched your search
@@ -108,7 +108,7 @@ const Editor = createClass({
|
||||
const codeMirror = this.refs.codeEditor.codeMirror;
|
||||
|
||||
//reset custom text styles
|
||||
const customHighlights = codeMirror.getAllMarks().filter((mark)=>!mark.__isFold);
|
||||
const customHighlights = codeMirror.getAllMarks().filter((mark)=>!mark.__isFold); //Don't undo code folding
|
||||
for (let i=0;i<customHighlights.length;i++) customHighlights[i].clear();
|
||||
|
||||
const lineNumbers = _.reduce(this.props.brew.text.split('\n'), (r, line, lineNumber)=>{
|
||||
|
||||
Reference in new issue
Block a user