mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 02:21:32 +03:00
Buffer: fix insert at end of buffer
This commit is contained in:
parent
407782a742
commit
23f72851e4
@ -231,7 +231,7 @@ void Buffer::insert(const BufferIterator& pos, const String& content)
|
|||||||
if (start != content.length())
|
if (start != content.length())
|
||||||
m_lines.push_back({ offset + start, content.substr(start) });
|
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();
|
end_it = end();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user