correctly update old matching brackets
This commit is contained in:
parent
141de5ed74
commit
e50a8d0faf
|
@ -1326,6 +1326,8 @@ void Editor::onStatusChanged(SynStatusChanges changes)
|
||||||
|
|
||||||
if (changes.testFlag(SynStatusChange::scCaretX)
|
if (changes.testFlag(SynStatusChange::scCaretX)
|
||||||
|| changes.testFlag(SynStatusChange::scCaretY)) {
|
|| changes.testFlag(SynStatusChange::scCaretY)) {
|
||||||
|
invalidateLine(mHighlightCharPos1.Line);
|
||||||
|
invalidateLine(mHighlightCharPos2.Line);
|
||||||
mHighlightCharPos1 = BufferCoord{0,0};
|
mHighlightCharPos1 = BufferCoord{0,0};
|
||||||
mHighlightCharPos2 = BufferCoord{0,0};
|
mHighlightCharPos2 = BufferCoord{0,0};
|
||||||
if (mTabStopBegin >=0) {
|
if (mTabStopBegin >=0) {
|
||||||
|
|
|
@ -668,7 +668,7 @@ void SynEditTextPainter::PaintFoldAttributes()
|
||||||
}
|
}
|
||||||
// Get next nonblank line
|
// Get next nonblank line
|
||||||
LastNonBlank = vLine - 1;
|
LastNonBlank = vLine - 1;
|
||||||
while (LastNonBlank + 1 < edit->mLines->count() && edit->mLines->getString(LastNonBlank).trimmed().isEmpty())
|
while (LastNonBlank + 1 < edit->mLines->count() && edit->mLines->getString(LastNonBlank).isEmpty())
|
||||||
LastNonBlank++;
|
LastNonBlank++;
|
||||||
LineIndent = edit->getLineIndent(edit->mLines->getString(LastNonBlank));
|
LineIndent = edit->getLineIndent(edit->mLines->getString(LastNonBlank));
|
||||||
int braceLevel = edit->mLines->ranges(LastNonBlank).braceLevel;
|
int braceLevel = edit->mLines->ranges(LastNonBlank).braceLevel;
|
||||||
|
|
Loading…
Reference in New Issue