diff options
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 4738cc47..e0c4c3ff 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -475,7 +475,7 @@ void Buffer::do_insert(const BufferCoord& pos, const String& content) m_lines.push_back({ offset + start, content.substr(start) }); begin = pos.column == 0 ? pos : BufferCoord{ pos.line + 1, 0 }; - end = this->end().coord(); + end = BufferCoord{ line_count()-1, m_lines.back().length() }; } else { |
