summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2020-05-28 20:04:32 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2020-05-28 20:04:32 +0200
commit13a6aa2fbd479b36738b09b19c30fd4c58daf678 (patch)
tree88562d42c47173004180ba5f7529413f839dbc6a /src
parentaad20f6576aefa581a1a108722c347a56935e015 (diff)
refactor: remove extra semicolons
Diffstat (limited to 'src')
-rw-r--r--src/highlighters.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc
index ecc84481..c11d708a 100644
--- a/src/highlighters.cc
+++ b/src/highlighters.cc
@@ -57,7 +57,7 @@ void highlight_range(DisplayBuffer& display_buffer,
for (auto& line : display_buffer.lines())
{
auto& range = line.range();
- if (range.end <= begin or end < range.begin)
+ if (range.end <= begin or end < range.begin)
continue;
for (auto atom_it = line.begin(); atom_it != line.end(); ++atom_it)
@@ -1568,7 +1568,7 @@ private:
static bool is_valid(Buffer& buffer, BufferCoord c)
{
return c.line >= 0 and c.column >= 0 and c.line < buffer.line_count() and c.column <= buffer[c.line].length();
- };
+ }
static bool is_fully_selected(const SelectionList& sels, const InclusiveBufferRange& range)
{
@@ -1576,7 +1576,7 @@ private:
if (it == sels.end())
return true;
return it->min() > range.last or (it->min() <= range.first and it->max() >= range.last);
- };
+ }
void do_highlight(HighlightContext context, DisplayBuffer& display_buffer, BufferRange) override
{