summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index aa9b93c9..13a0a131 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -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