diff --git a/NEWS.md b/NEWS.md index 10976ea7..b0969fe8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -20,6 +20,7 @@ Red Panda C++ Version 0.13.3 - enhancement: add exec charset option to compiler set settings - fix: when open a file, all blank lines's indents are removed. - fix: indent lines displayed at wrong position, when there are folded lines + - fix: if editor's active line color is disabled, caret's position may not be correct redrawn Red Panda C++ Version 0.13.2 - fix: "delete and exit" button in the environtment / folder option page doesn't work correctly diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index 6e60382a..7741f853 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -266,14 +266,8 @@ void SynEdit::setCaretXYEx(bool CallEnsureCursorPosVisible, BufferCoord value) if (mCaretY != value.Line) { int oldCaretY = mCaretY; mCaretY = value.Line; - if (mActiveLineColor.isValid()) { - invalidateLine(mCaretY); - invalidateLine(oldCaretY); - } - if (mGutter.activeLineTextColor().isValid()) { - invalidateGutterLine(mCaretY); - invalidateGutterLine(oldCaretY); - } + invalidateLine(mCaretY); + invalidateLine(oldCaretY); mStatusChanges.setFlag(SynStatusChange::scCaretY); } // Call UpdateLastCaretX before DecPaintLock because the event handler it