- fix: if editor's active line color is disabled, caret's position may not be correct redrawn
This commit is contained in:
parent
2c8a7d29dd
commit
3c132d69f3
1
NEWS.md
1
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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
mStatusChanges.setFlag(SynStatusChange::scCaretY);
|
||||
}
|
||||
// Call UpdateLastCaretX before DecPaintLock because the event handler it
|
||||
|
|
Loading…
Reference in New Issue