Commit e834835a authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix possible infinite formatting calls

BUG: 452047
(cherry picked from commit 4845de3d)
parent c64e768f
Pipeline #157255 passed with stage
in 2 minutes and 34 seconds
......@@ -2081,7 +2081,12 @@ public:
checkEditResult(edits);
}
if (document) {
// Must clear formatting triggers here otherwise on applying edits we
// might end up triggering formatting again ending up in an infinite loop
auto savedTriggers = m_onTypeFormattingTriggers;
m_onTypeFormattingTriggers.clear();
applyEdits(document, snapshot.data(), edits);
m_onTypeFormattingTriggers = savedTriggers;
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment