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
044c1ea7
Commit
044c1ea7
authored
Sep 26, 2022
by
Waqar Ahmed
Browse files
Fix crash in rainbow plugins
parent
dfefacfa
Pipeline
#236812
passed with stage
in 13 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/rainbow-parens/rainbowparens_plugin.cpp
View file @
044c1ea7
...
...
@@ -91,6 +91,10 @@ static void getSavedRangesForDoc(std::vector<RainbowParenPluginView::SavedRanges
void
RainbowParenPluginView
::
viewChanged
(
KTextEditor
::
View
*
view
)
{
if
(
!
view
)
{
return
;
}
// disconnect and clear previous doc stuff
if
(
m_activeView
)
{
disconnect
(
m_activeView
,
&
KTextEditor
::
View
::
verticalScrollPositionChanged
,
this
,
&
RainbowParenPluginView
::
rehighlight
);
...
...
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