summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index eab38d92..30cf6d38 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -69,7 +69,7 @@ BufferSize Buffer::line_length(BufferPos line) const
{
assert(line < line_count());
BufferPos end = (line < m_lines.size() - 1) ?
- m_lines[line + 1].start : length();
+ m_lines[line + 1].start : character_count();
return end - m_lines[line].start;
}
@@ -108,7 +108,7 @@ BufferIterator Buffer::end() const
return BufferIterator(*this, { (int)line_count()-1, (int)m_lines.back().length() });
}
-BufferSize Buffer::length() const
+BufferSize Buffer::character_count() const
{
if (m_lines.empty())
return 0;