diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-22 21:48:26 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-22 21:50:51 +1100 |
| commit | cb1b03c0db91d85db3545a49f68d63fad0fe137c (patch) | |
| tree | bf8ba71c18a74d8bc1ebb38df246a3b0d87ad256 /src/display_buffer.hh | |
| parent | 22d9ffa63ac22d3823c41b4671e0565a92cf8619 (diff) | |
Add support for markup in info boxes
Fixes #2552
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 1c8fc53d..01310b26 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -135,6 +135,7 @@ private: AtomList m_atoms; }; +using DisplayLineList = Vector<DisplayLine>; class FaceRegistry; String fix_atom_text(StringView str); @@ -143,11 +144,10 @@ DisplayLine parse_display_line(StringView line, const FaceRegistry& faces, const class DisplayBuffer : public UseMemoryDomain<MemoryDomain::Display> { public: - using LineList = Vector<DisplayLine>; DisplayBuffer() {} - LineList& lines() { return m_lines; } - const LineList& lines() const { return m_lines; } + DisplayLineList& lines() { return m_lines; } + const DisplayLineList& lines() const { return m_lines; } // returns the smallest BufferRange which contains every DisplayAtoms const BufferRange& range() const { return m_range; } @@ -160,7 +160,7 @@ public: size_t timestamp() const { return m_timestamp; } private: - LineList m_lines; + DisplayLineList m_lines; BufferRange m_range; size_t m_timestamp = -1; }; |
