diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index 0bc64e500..f8287dea1 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -150,7 +150,7 @@ const Editor = createClass({ codeMirror.operation(()=>{ // Batch CodeMirror styling const foldLines = []; - + //reset custom text styles const customHighlights = codeMirror.getAllMarks().filter((mark)=>{ // Record details of folded sections diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index 3e93cd176..06f6ba0c2 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -399,7 +399,7 @@ const CodeEditor = createClass({ }, getTopVisibleLine : function(){ const rect = this.codeMirror.getWrapperElement().getBoundingClientRect(); - const topVisibleLine = this.codeMirror.lineAtHeight(rect.top, "window"); + const topVisibleLine = this.codeMirror.lineAtHeight(rect.top, "window"); return topVisibleLine; }, updateSize : function(){