Skip to content

Commit

Permalink
fix undoing line removal (clear lexing states of inserted lines)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Nov 12, 2023
1 parent 4b99710 commit d97a61b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qcodeedit/lib/document/qdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7654,6 +7654,7 @@ void QDocumentPrivate::insertLines(int after, const QList<QDocumentLineHandle*>&
h->setFlag(QDocumentLine::CollapsedBlockStart, false);
h->setFlag(QDocumentLine::CollapsedBlockEnd, false);
h->m_frontiers.clear();
h->m_state&=31; // reset lexing states
}

QMap<int, int>::iterator it = m_hidden.begin();
Expand Down

0 comments on commit d97a61b

Please sign in to comment.