Small code cleanup

This commit is contained in:
Maxime Coste 2016-10-04 19:37:17 +01:00
parent 620fc28ea6
commit 40fb56c87a

View File

@ -63,10 +63,10 @@ ColumnCount DisplayAtom::length() const
switch (m_type) switch (m_type)
{ {
case BufferRange: case BufferRange:
return (int)column_length(*m_buffer, m_range.begin, m_range.end); return column_length(*m_buffer, m_range.begin, m_range.end);
case Text: case Text:
case ReplacedBufferRange: case ReplacedBufferRange:
return (int)m_text.column_length(); return m_text.column_length();
} }
kak_assert(false); kak_assert(false);
return 0; return 0;