From 278a4d35c717afefd0dd7061cff17458a9802746 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Thu, 11 Nov 2021 21:47:15 -0600 Subject: [PATCH] Adjust calling of `removeLineClass` to limit the classes it removes #1201 #1202 --- client/homebrew/editor/editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index 14038f740..9448404d2 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -114,7 +114,7 @@ const Editor = createClass({ const lineNumbers = _.reduce(this.props.brew.text.split('\n'), (r, line, lineNumber)=>{ //reset custom line styles - codeMirror.removeLineClass(lineNumber, 'background'); + codeMirror.removeLineClass(lineNumber, 'background', 'pageLine'); codeMirror.removeLineClass(lineNumber, 'text'); // Legacy Codemirror styling