From d97a61b9ef9ae304d2c4cb53d872c00c3ce78090 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Sun, 12 Nov 2023 18:18:22 +0100 Subject: [PATCH] fix undoing line removal (clear lexing states of inserted lines) --- src/qcodeedit/lib/document/qdocument.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qcodeedit/lib/document/qdocument.cpp b/src/qcodeedit/lib/document/qdocument.cpp index 7a2398295e..81b1e12f6d 100644 --- a/src/qcodeedit/lib/document/qdocument.cpp +++ b/src/qcodeedit/lib/document/qdocument.cpp @@ -7654,6 +7654,7 @@ void QDocumentPrivate::insertLines(int after, const QList& h->setFlag(QDocumentLine::CollapsedBlockStart, false); h->setFlag(QDocumentLine::CollapsedBlockEnd, false); h->m_frontiers.clear(); + h->m_state&=31; // reset lexing states } QMap::iterator it = m_hidden.begin();