1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-20 18:11:36 +03:00

Buffer: fix insert at end of buffer

This commit is contained in:
Maxime Coste 2012-08-02 07:04:04 +02:00
parent 407782a742
commit 23f72851e4

View File

@ -231,7 +231,7 @@ void Buffer::insert(const BufferIterator& pos, const String& content)
if (start != content.length())
m_lines.push_back({ offset + start, content.substr(start) });
begin_it = iterator_at({ pos.m_coord.line + 1, 0 });
begin_it = pos;
end_it = end();
}
else