From 2946504a17a2eec949faf85c3cf148d5fcb64bae Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 23 Jul 2015 13:58:23 +0100 Subject: Improve column highlighter to cooperate better with other highlighters Fixes #268 --- src/display_buffer.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/display_buffer.hh') 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); -- cgit v1.2.3