From b494b873b159fdf19a44e20cd61795fb7f1afaef Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 1 Nov 2014 19:35:27 +0000 Subject: [PATCH] Fix buffer being considered modified after reloading --- src/buffer.cc | 2 ++ 1 file changed, 2 insertions(+) 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 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 });