fix: #485 syntax highlight status not correctly updated after modification.
This commit is contained in:
parent
2224c988af
commit
e1ebf52d9d
|
@ -5417,8 +5417,7 @@ int QSynEdit::doInsertTextByNormalMode(const BufferCoord& pos, const QStringList
|
||||||
reparseLines(caretY-1,caretY, false, false);
|
reparseLines(caretY-1,caretY, false, false);
|
||||||
result++;
|
result++;
|
||||||
}
|
}
|
||||||
if (useCodeFolding())
|
reparseLines(caretY, caretY+1);
|
||||||
rescanFolds();
|
|
||||||
bChangeScroll = !mOptions.testFlag(EditorOption::ScrollPastEol);
|
bChangeScroll = !mOptions.testFlag(EditorOption::ScrollPastEol);
|
||||||
mOptions.setFlag(EditorOption::ScrollPastEol);
|
mOptions.setFlag(EditorOption::ScrollPastEol);
|
||||||
auto action = finally([&,this]{
|
auto action = finally([&,this]{
|
||||||
|
|
Loading…
Reference in New Issue