diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-03-30 12:00:40 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-03-30 12:00:40 +0000 |
| commit | 2e7cd2233ce449a51756c180432635eb1aee20f3 (patch) | |
| tree | 965fefc94343f7b554da9135bf9024aad21b4744 /src/buffer.hh | |
| parent | 0ba7c7286dd97d7d3d7c03bccf3ea98389f0e273 (diff) | |
add a Line::length method
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 526110fd..83e5ffc7 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -182,6 +182,8 @@ private: { BufferPos start; String content; + + size_t length() const { return content.length(); } }; std::vector<Line> m_lines; |
