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
46ff658a
Commit
46ff658a
authored
Dec 12, 2021
by
Christoph Cullmann
🍨
Browse files
try to fix compile on FreeBSD
parent
f14b7c39
Pipeline
#108860
passed with stage
in 4 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/rainbow-parens/rainbowparens_plugin.cpp
View file @
46ff658a
...
...
@@ -267,12 +267,6 @@ void RainbowParenPluginView::rehighlight(KTextEditor::View *view)
}
KTextEditor
::
Cursor
opener
;
KTextEditor
::
Cursor
closer
;
// less than for sorting
bool
operator
<
(
BracketPair
p
)
{
return
opener
<
p
.
opener
;
}
};
// contains all final bracket pairs of current viewport
...
...
@@ -327,7 +321,9 @@ void RainbowParenPluginView::rehighlight(KTextEditor::View *view)
// sort by start paren
// Necessary so that we can get alternating colors for brackets
// on the same line
std
::
sort
(
parens
.
begin
(),
parens
.
end
());
std
::
stable_sort
(
parens
.
begin
(),
parens
.
end
(),
[](
const
auto
&
a
,
const
auto
&
b
)
{
return
a
.
opener
<
b
.
opener
;
});
auto
onSameLine
=
[](
KTextEditor
::
Cursor
open
,
KTextEditor
::
Cursor
close
)
{
return
open
.
line
()
==
close
.
line
();
...
...
Christoph Cullmann
🍨
@cullmann
mentioned in commit
8713a1f6
·
Dec 13, 2021
mentioned in commit
8713a1f6
mentioned in commit 8713a1f683d3178d4bc125fd70160646aaf43003
Toggle commit list
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