diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-23 22:55:44 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-23 22:55:44 +0200 |
| commit | b9eb939e05f8b63354f54d1986b74c2bb8dde75e (patch) | |
| tree | 50a5fc1216aa42e673e13857d88672f44e4606aa /src/display_buffer.hh | |
| parent | b1637119637e2dc3e10635a08ac06e256018ea78 (diff) | |
Add some remote client support protocol code
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 869ef7a6..5a5f1558 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -129,6 +129,8 @@ public: using const_iterator = AtomList::const_iterator; explicit DisplayLine(LineCount buffer_line) : m_buffer_line(buffer_line) {} + DisplayLine(LineCount buffer_line, AtomList atoms) + : m_buffer_line(buffer_line), m_atoms(std::move(atoms)) {} LineCount buffer_line() const { return m_buffer_line; } @@ -138,6 +140,8 @@ public: const_iterator begin() const { return m_atoms.begin(); } const_iterator end() const { return m_atoms.end(); } + const AtomList& atoms() const { return m_atoms; } + // Split atom pointed by it at pos, returns an iterator to the first atom iterator split(iterator it, BufferIterator pos); |
