summaryrefslogtreecommitdiff
path: root/src/display_buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-06-15 18:12:21 +0100
committerMaxime Coste <mawww@kakoune.org>2017-06-15 18:12:21 +0100
commit4ed790632d3a8a0901145df99bac5e0a9afa22d4 (patch)
treea8b7340915aadcadd46084d46c1a7fce42843b21 /src/display_buffer.hh
parentfa4b88c2f8556ad736dab3af3629715ba41cf3bc (diff)
Fix some other uses of invalid buffer coordinates in display code
Diffstat (limited to 'src/display_buffer.hh')
-rw-r--r--src/display_buffer.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh
index e3c58516..1215d76d 100644
--- a/src/display_buffer.hh
+++ b/src/display_buffer.hh
@@ -25,6 +25,10 @@ size_t hash_value(const BufferRange& range)
return hash_values(range.begin, range.end);
}
+class BufferIterator;
+// Return a buffer iterator to the coord, tolerating one past end of line coords
+BufferIterator get_iterator(const Buffer& buffer, BufferCoord coord);
+
struct DisplayAtom : public UseMemoryDomain<MemoryDomain::Display>
{
public: