buffer style fix
This commit is contained in:
parent
3c105592e0
commit
a377ff79aa
|
@ -75,7 +75,7 @@ BufferSize Buffer::line_length(BufferPos line) const
|
||||||
{
|
{
|
||||||
assert(not m_lines.empty());
|
assert(not m_lines.empty());
|
||||||
BufferPos end = (line < m_lines.size() - 1) ?
|
BufferPos end = (line < m_lines.size() - 1) ?
|
||||||
m_lines[line + 1] : m_content.size();
|
m_lines[line + 1] : length();
|
||||||
return end - m_lines[line];
|
return end - m_lines[line];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user