minor tweak buffer iterator

This commit is contained in:
Maxime Coste 2013-05-23 14:29:19 +02:00
parent 7f17644a6b
commit 4f1ba860f8

View File

@ -146,8 +146,8 @@ inline BufferIterator BufferIterator::operator--(int)
inline BufferIterator& BufferIterator::operator=(const BufferCoord& coord) inline BufferIterator& BufferIterator::operator=(const BufferCoord& coord)
{ {
kak_assert(m_buffer and m_buffer->is_valid(coord));
m_coord = coord; m_coord = coord;
kak_assert(is_valid());
return *this; return *this;
} }