diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-05-29 11:59:03 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-05-29 11:59:03 +1000 |
| commit | 94f33bb63862357557ef533126a41d64b12f1c53 (patch) | |
| tree | 4290036b7388a2b2a50972ec8ba0c9b25d9f9466 /src/line_modification.cc | |
| parent | 109abbeed40c776fdc33bd5c9344b6865122ef6d (diff) | |
Add a range based remove_if overload
Diffstat (limited to 'src/line_modification.cc')
| -rw-r--r-- | src/line_modification.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/line_modification.cc b/src/line_modification.cc index 47e11e64..3e84fe50 100644 --- a/src/line_modification.cc +++ b/src/line_modification.cc @@ -142,7 +142,7 @@ void LineRangeSet::update(ConstArrayView<LineModification> modifs) } } }; - erase(std::remove_if(begin(), end(), [](auto& r) { return r.begin >= r.end; }), end()); + erase(remove_if(*this, [](auto& r) { return r.begin >= r.end; }), end()); } void LineRangeSet::add_range(LineRange range, FunctionRef<void (LineRange)> on_new_range) |
