From 4f4a626754b3c3ed9a8f9989c8d43906f9efd7ab Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 21 Jan 2014 18:52:51 +0000 Subject: Fix adapt_view_pos when the cursor is not on a display atom by itself --- src/display_buffer.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/display_buffer.hh') diff --git a/src/display_buffer.hh b/src/display_buffer.hh index f366bda9..b992654a 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -96,6 +96,8 @@ public: return m_type == BufferRange or m_type == ReplacedBufferRange; } + const Buffer& buffer() const { kak_assert(m_buffer); return *m_buffer; } + Type type() const { return m_type; } void trim_begin(CharCount count); -- cgit v1.2.3