Commit bb2a139b authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: avoid superfluous edit transaction

parent f69ac7ac
......@@ -2011,7 +2011,7 @@ public:
}
// now make one transaction (a.o. for one undo) and apply in sequence
{
if (!ranges.empty()) {
KTextEditor::Document::EditingTransaction transaction(doc);
for (int i = 0; i < ranges.length(); ++i) {
doc->replaceText(ranges.at(i)->toRange(), edits.at(i).newText);
......
Markdown is supported
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