diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-07-23 13:58:23 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-07-23 13:58:23 +0100 |
| commit | 2946504a17a2eec949faf85c3cf148d5fcb64bae (patch) | |
| tree | d39a8560931d12872f5bef9b6a57c4c60f82ed8e /src/display_buffer.hh | |
| parent | 654904f0460cc9d7af086d034af6037844f01f42 (diff) | |
Improve column highlighter to cooperate better with other highlighters
Fixes #268
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 35381058..8e543284 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -117,9 +117,14 @@ public: CharCount length() const; const BufferRange& range() const { return m_range; } - // Split atom pointed by it at pos, returns an iterator to the first atom + // Split atom pointed by it at buffer coord pos, + // returns an iterator to the first atom iterator split(iterator it, ByteCoord pos); + // Split atom pointed by it at its pos character, + // returns an iterator to the first atom + iterator split(iterator it, CharCount pos); + iterator insert(iterator it, DisplayAtom atom); iterator erase(iterator beg, iterator end); void push_back(DisplayAtom atom); |
