summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 6956c121..df427e60 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -183,6 +183,8 @@ void Buffer::reload(std::vector<String> lines, time_t fs_timestamp)
Modification::Insert, line_count()-1, m_lines.back());
}
commit_undo_group();
+
+ m_last_save_undo_index = m_history_cursor - m_history.begin();
m_fs_timestamp = fs_timestamp;
m_changes.push_back({ Change::Insert, {0,0}, back_coord(), true });