fix: #485 syntax highlight status not correctly updated after modification.

This commit is contained in:
Roy Qu 2024-09-28 09:44:31 +08:00
parent 2224c988af
commit e1ebf52d9d
1 changed files with 1 additions and 2 deletions

View File

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