- fix: if editor's active line color is disabled, caret's position may not be correct redrawn

This commit is contained in:
Roy Qu 2022-01-24 16:20:16 +08:00
parent 2c8a7d29dd
commit 3c132d69f3
2 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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