From cac9e208df00aab6e9c5cc434811fce809e6ccb5 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Wed, 10 Nov 2021 10:27:32 -0600 Subject: [PATCH] Update editor.jsx to only clear marks that are not folds #629 --- 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 77001435d..61d330772 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -108,7 +108,7 @@ const Editor = createClass({ const codeMirror = this.refs.codeEditor.codeMirror; //reset custom text styles - const customHighlights = codeMirror.getAllMarks(); + const customHighlights = codeMirror.getAllMarks().filter((mark)=>!mark.__isFold); for (let i=0;i{