diff --git a/src/buffer_iterator.inl.hh b/src/buffer_iterator.inl.hh index 575ed03f..e8372221 100644 --- a/src/buffer_iterator.inl.hh +++ b/src/buffer_iterator.inl.hh @@ -146,8 +146,8 @@ inline BufferIterator BufferIterator::operator--(int) inline BufferIterator& BufferIterator::operator=(const BufferCoord& coord) { + kak_assert(m_buffer and m_buffer->is_valid(coord)); m_coord = coord; - kak_assert(is_valid()); return *this; }