diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-04-24 13:56:36 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-04-24 13:56:36 +0200 |
| commit | f8c3b6c9ef6c8a6ae66c95800a2a92eee094ea1b (patch) | |
| tree | db144cdd6982bd0627ff9936fd6743b277b68d8d /src/buffer.cc | |
| parent | 7c4e79ef98a727dfeb94a7c30d9aa9975ed37b0b (diff) | |
Buffer: rename character_count method to byte_count
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 93360b74..807f8f62 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -96,7 +96,7 @@ ByteCount Buffer::line_length(LineCount line) const { kak_assert(line < line_count()); ByteCount end = (line < line_count() - 1) ? - m_lines[line + 1].start : character_count(); + m_lines[line + 1].start : byte_count(); return end - m_lines[line].start; } @@ -149,7 +149,7 @@ BufferIterator Buffer::end() const return BufferIterator(*this, { line_count()-1, m_lines.back().length() }); } -ByteCount Buffer::character_count() const +ByteCount Buffer::byte_count() const { if (m_lines.empty()) return 0; |
