From 49c52b025f2cb5bd66f729f873d2e690b613fb39 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 25 Mar 2018 16:47:19 +1100 Subject: Remove contains_that and use any_of to be closer to the c++ stdlib --- src/insert_completer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/insert_completer.cc') 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) -- cgit v1.2.3