From 26a126859d6e03caf2e16f275cfcd9a64a81944a Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Sat, 14 Sep 2024 19:02:55 -0400 Subject: [PATCH] Lint --- client/homebrew/editor/editor.jsx | 2 +- shared/naturalcrit/codeEditor/codeEditor.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(){