diff options
| author | Enrico Borba <enricozb@users.noreply.github.com> | 2024-12-23 09:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-23 09:23:58 +0100 |
| commit | 52125e6336d596aebdd4da91080b3178ddca7449 (patch) | |
| tree | 27d3e5c01660d567f22fee621c97753f294256b0 /src/display_buffer.hh | |
| parent | 14cb35f62b36b2f1aa530adb5e31c05ff1347bfc (diff) | |
| parent | 9c458c50661446fc6e7295787b06422137af099d (diff) | |
Merge branch 'master' into enricozb/daemon-stdin
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index c4ea6fb5..3a6ad0c2 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -7,7 +7,8 @@ #include "string.hh" #include "vector.hh" #include "hash_map.hh" -#include <functional> + +#include <algorithm> namespace Kakoune { @@ -137,7 +138,7 @@ public: template<typename It> iterator insert(iterator pos, It beg, It end) { - auto has_buffer_range = std::mem_fn(&DisplayAtom::has_buffer_range); + auto has_buffer_range = [](const DisplayAtom& atom) { return atom.has_buffer_range(); }; auto had_range = any_of(*this, has_buffer_range); if (auto first = std::find_if(beg, end, has_buffer_range); first != end) { |
