fix insert position when erasing a code point in insert mode

This commit is contained in:
josh committed 2016-12-27 14:07:46 -05:00
1 parent 30fe7e32d3
commit 723b96f624
1 file changed
+4
+4
View File
@@ -196,5 +196,9 @@ void Buffer::erase_code_point(const Buffer::Iterator & position)
iterator->warp(-(ssize_t)bytes, lines);
}
}
if (m_insert_position > position.offset())
{
m_insert_position -= bytes;
}
}
}