diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-08-14 22:04:35 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-08-14 22:04:35 +1000 |
| commit | 01cb818c2077f5059bfa84834298bb813aa9baca (patch) | |
| tree | cd87ab8afc5a92551299ae98cff16cdc11aaf119 /src/display_buffer.hh | |
| parent | 575f49f1b4cf93e8d91545f2e8959111bf6e7f2b (diff) | |
Reduce number of included headers
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index b1a18098..613832dd 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -7,9 +7,6 @@ #include "string.hh" #include "vector.hh" #include "hash_map.hh" -#include "ranges.hh" - -#include <functional> namespace Kakoune { @@ -139,7 +136,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) { |
