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 b9335322..7054e6b8 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -261,7 +261,7 @@ void Buffer::reload(BufferLines lines, ByteOrderMark bom, EolFormat eolformat, F
for (LineCount line = len-1; line >= 0; --line)
m_current_undo_group.push_back({
Modification::Erase, cur_line + line,
- m_lines.get_storage(cur_line + line)});
+ *(read_it + (size_t)line)});
read_it += len;
m_changes.push_back({ Change::Erase, cur_line, cur_line + len });