summaryrefslogtreecommitdiff
path: root/src/display_buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-01-21 18:52:51 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-01-21 18:52:51 +0000
commit4f4a626754b3c3ed9a8f9989c8d43906f9efd7ab (patch)
treeff402c8a7c39d006d88452924db610807caa330d /src/display_buffer.hh
parent2cbb0bb27f926701f2522c1a10e411e5c9181b4b (diff)
Fix adapt_view_pos when the cursor is not on a display atom by itself
Diffstat (limited to 'src/display_buffer.hh')
-rw-r--r--src/display_buffer.hh2
1 files changed, 2 insertions, 0 deletions
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);