diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index a42484827..c683c3f2e 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -433,7 +433,7 @@ const CodeEditor = createClass({ } text = foldPreviewText || `Lines ${from.line+1}-${to.line+1}`; - text = text.trim(); + text = text.trim().replace('{', '').trim(); if(text.length > maxLength) text = `${text.substr(0, maxLength)}...`;