From af288afa7e8ad85ed7ea4688b3c6b1834ce54794 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Thu, 23 Sep 2021 14:04:33 +0800 Subject: [PATCH] work save: fix code folder process --- NEWS.md | 3 ++- RedPandaIDE/qsynedit/highlighter/cpp.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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--;