diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-11 21:38:43 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-11 23:19:24 +0000 |
| commit | 277b02eee6cb0037d2ecce46d1f2a455dfb0b001 (patch) | |
| tree | a4a34fbc87541d995c526f73d780a94c8f68f15e /src/display_buffer.hh | |
| parent | 39512914ad6adbb91de57ac5957594acde543848 (diff) | |
Add experimental region_ref highlighter
highlights a region using another highlighter.
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 320019d6..92896ee9 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -122,6 +122,7 @@ class DisplayLine public: using iterator = AtomList::iterator; using const_iterator = AtomList::const_iterator; + using value_type = AtomList::value_type; DisplayLine() = default; DisplayLine(AtomList atoms); @@ -143,6 +144,7 @@ public: iterator split(iterator it, BufferCoord pos); iterator insert(iterator it, DisplayAtom atom); + iterator erase(iterator beg, iterator end); void push_back(DisplayAtom atom); // remove first_char from the begining of the line, and make sure |
