diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-02 07:04:04 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-02 07:04:04 +0200 |
| commit | 23f72851e46961c97be930f33f2c747d2d26fb05 (patch) | |
| tree | 47e831a9cd3beb4f2a8d48147773584da4144cc0 /src/buffer.cc | |
| parent | 407782a7427818eb03ba060b87d324bd1ea8f490 (diff) | |
Buffer: fix insert at end of buffer
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 2 |
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 |
