diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-08 14:26:57 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-08 14:26:57 +0200 |
| commit | 5a267ab627f52e25e2ae59ab2c19aaa625914b90 (patch) | |
| tree | 6e20cfcf88a7e04096cfd4b7a4c187109ccaa8c9 /src/buffer.hh | |
| parent | f2e98f700e405a0cb17be9a6b73daed15f50a165 (diff) | |
selections should always point to an utf8 character sequence start byte
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 36fc2b0d..0d055c4b 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -132,6 +132,7 @@ public: BufferIterator end() const; CharCount character_count() const; LineCount line_count() const; + CharCount line_length(LineCount line) const; // returns an iterator at given coordinates. line_and_column is // clamped according to avoid_eol. @@ -206,8 +207,6 @@ private: void do_insert(const BufferIterator& pos, const String& content); void do_erase(const BufferIterator& pos, CharCount length); - CharCount line_length(LineCount line) const; - String m_name; const Type m_type; |
