summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-03-25 16:47:19 +1100
committerMaxime Coste <mawww@kakoune.org>2018-03-25 16:47:19 +1100
commit49c52b025f2cb5bd66f729f873d2e690b613fb39 (patch)
tree2181f8cc2c43646abbfdc213991028c406d33649 /src/insert_completer.cc
parent435b5b7ff97c7e52d50c002c9480af7066ead2ad (diff)
Remove contains_that and use any_of to be closer to the c++ stdlib
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc
index 8db65556..fbc463f4 100644
--- a/src/insert_completer.cc
+++ b/src/insert_completer.cc
@@ -294,8 +294,7 @@ InsertCompletion complete_option(const SelectionList& sels,
}
size_t timestamp = (size_t)str_to_int({match[4].first, match[4].second});
auto changes = buffer.changes_since(timestamp);
- if (contains_that(changes, [&](const Buffer::Change& change)
- { return change.begin < coord; }))
+ if (any_of(changes, [&](auto&& change) { return change.begin < coord; }))
return {};
if (cursor_pos.line == coord.line and cursor_pos.column >= coord.column)