buffer style fix

This commit is contained in:
Maxime Coste 2012-03-12 21:39:54 +00:00
parent 3c105592e0
commit a377ff79aa

View File

@ -75,7 +75,7 @@ BufferSize Buffer::line_length(BufferPos line) const
{
assert(not m_lines.empty());
BufferPos end = (line < m_lines.size() - 1) ?
m_lines[line + 1] : m_content.size();
m_lines[line + 1] : length();
return end - m_lines[line];
}