From 23f72851e46961c97be930f33f2c747d2d26fb05 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 2 Aug 2012 07:04:04 +0200 Subject: [PATCH] Buffer: fix insert at end of buffer --- src/buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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