summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-12-28 13:52:19 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-12-28 13:52:19 +0100
commit9531fd591550bd3b5cab13e1430247f4e448d3d0 (patch)
treed294dce671713d883c29606eb473561b46fc582f /src/buffer.cc
parentd4f155cae78126e04d50cb24e21c9288ae81caab (diff)
Buffer loses the 'New' flag when written
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 60b05c85..7ffd417e 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -405,6 +405,7 @@ void Buffer::notify_saved()
begin_undo_group();
}
+ m_flags &= ~Flags::New;
size_t history_cursor_index = m_history_cursor - m_history.begin();
if (m_last_save_undo_index != history_cursor_index)
{