summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-01 19:35:27 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-01 19:35:27 +0000
commitb494b873b159fdf19a44e20cd61795fb7f1afaef (patch)
treea4931e53960c2c06d4e76c6da3e3656a442c7c69
parentc04dfc7bb7ea01404c9475c47e710fe12256f17e (diff)
Fix buffer being considered modified after reloading
-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 });