From 72bdd7900f5366ff9e99e78baf9c3bd32e0d51e8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 21 Oct 2018 12:10:21 +1100 Subject: Move LineRangeSet to line_modification.hh --- src/display_buffer.hh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/display_buffer.hh') diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 3955ec25..e86dcdb0 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -4,6 +4,7 @@ #include "face.hh" #include "hash.hh" #include "coord.hh" +#include "range.hh" #include "string.hh" #include "vector.hh" #include "hash_map.hh" @@ -12,18 +13,7 @@ namespace Kakoune { class Buffer; -struct BufferRange{ BufferCoord begin, end; }; - -inline bool operator==(const BufferRange& lhs, const BufferRange& rhs) -{ - return lhs.begin == rhs.begin and lhs.end == rhs.end; -} - -inline -size_t hash_value(const BufferRange& range) -{ - return hash_values(range.begin, range.end); -} +using BufferRange = Range; class BufferIterator; // Return a buffer iterator to the coord, tolerating one past end of line coords -- cgit v1.2.3