fix BufferIterator::update when removing an end of line

This commit is contained in:
Maxime Coste 2012-04-01 15:40:25 +00:00
parent 7f425c4467
commit 2cd318e50d

View File

@ -110,6 +110,8 @@ inline void BufferIterator::update(const Modification& modification)
else
{
m_coord.line -= measure.line;
if (measure.line > 0 and pos.line() == m_coord.line)
m_coord.column += pos.column();
if (end.line == m_coord.line)
m_coord.column -= measure.column;
}