diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-25 16:47:19 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-25 16:47:19 +1100 |
| commit | 49c52b025f2cb5bd66f729f873d2e690b613fb39 (patch) | |
| tree | 2181f8cc2c43646abbfdc213991028c406d33649 /src/insert_completer.cc | |
| parent | 435b5b7ff97c7e52d50c002c9480af7066ead2ad (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.cc | 3 |
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) |
