diff --git a/NEWS.md b/NEWS.md index ea164dfd..47091fad 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,4 +5,5 @@ Version 0.2 - enhancement: rainbow parenthesis - enhancement: run executable with parameters - add: widget for function tips - - enhancement: options for editor tooltips \ No newline at end of file + - enhancement: options for editor tooltips + - fix: editor folder process error \ No newline at end of file diff --git a/RedPandaIDE/qsynedit/highlighter/cpp.cpp b/RedPandaIDE/qsynedit/highlighter/cpp.cpp index 972af96e..47c82b01 100644 --- a/RedPandaIDE/qsynedit/highlighter/cpp.cpp +++ b/RedPandaIDE/qsynedit/highlighter/cpp.cpp @@ -368,7 +368,7 @@ void SynEditCppHighlighter::braceCloseProc() } mRange.braceLevel -= 1; - if (mRange.leftBraces<=mRange.rightBraces) { + if (mRange.leftBraces>0) { mRange.rightBraces++ ; } else { mRange.leftBraces--;