Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
e834835a
Commit
e834835a
authored
Mar 30, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
e834835a
...
...
@@ -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
;
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment