Fix bug introduced in Buffer::do_insert

This commit is contained in:
Maxime Coste 2016-03-17 12:07:20 +00:00
parent 55ee6f970e
commit c6ca3af9b4

View File

@ -347,7 +347,7 @@ ByteCoord Buffer::do_insert(ByteCoord pos, StringView content)
if (at_end)
pos = append_lines ? line_count() : end_coord();
const StringView prefix = at_end ?
const StringView prefix = append_lines ?
StringView{} : m_lines[pos.line].substr(0, pos.column);
const StringView suffix = at_end ?
StringView{} : m_lines[pos.line].substr(pos.column);