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
bb2a139b
Commit
bb2a139b
authored
Dec 17, 2021
by
Mark Nauwelaerts
Browse files
lspclient: avoid superfluous edit transaction
parent
f69ac7ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
bb2a139b
...
...
@@ -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
);
...
...
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