summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
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)