Commit 4845de3d authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix possible infinite formatting calls

BUG: 452047
parent e3e575de
Pipeline #157065 passed with stage
in 10 minutes and 24 seconds
......@@ -2088,7 +2088,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