Skip to content
GitLab
Menu
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
14b6e7b5
Commit
14b6e7b5
authored
May 16, 2021
by
Waqar Ahmed
Browse files
Try prevent a crash
parent
06a41628
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
14b6e7b5
...
...
@@ -2281,7 +2281,11 @@ public:
this
,
SLOT
(
clearSemanticTokensHighlighting
(
KTextEditor
::
Document
*
)),
Qt
::
UniqueConnection
);
connect
(
doc
,
SIGNAL
(
aboutToClose
(
KTextEditor
::
Document
*
)),
this
,
SLOT
(
clearSemanticTokensHighlighting
(
KTextEditor
::
Document
*
)),
Qt
::
UniqueConnection
);
doSemanticHighlighting
(
activeView
);
}
}
...
...
addons/lspclient/lspsemantichighlighting.cpp
View file @
14b6e7b5
...
...
@@ -17,7 +17,9 @@ void SemanticHighlighter::remove(const QUrl &url)
auto
&
movingRanges
=
it
->
movingRanges
;
for
(
auto
mr
:
movingRanges
)
{
delete
mr
;
mr
=
nullptr
;
}
movingRanges
.
clear
();
m_docSemanticInfo
.
remove
(
url
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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