diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index 1515e1eb..d2248b74 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -5417,8 +5417,7 @@ int QSynEdit::doInsertTextByNormalMode(const BufferCoord& pos, const QStringList reparseLines(caretY-1,caretY, false, false); result++; } - if (useCodeFolding()) - rescanFolds(); + reparseLines(caretY, caretY+1); bChangeScroll = !mOptions.testFlag(EditorOption::ScrollPastEol); mOptions.setFlag(EditorOption::ScrollPastEol); auto action = finally([&,this]{