From a3445232a47e487f06a42e7c184362bcfa1b7179 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 19 Dec 2019 13:39:30 +1100 Subject: Update fs status post buffer write --- src/buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer.cc') diff --git a/src/buffer.cc b/src/buffer.cc index 0d738dad..f7eeee31 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -607,14 +607,14 @@ bool Buffer::is_modified() const not m_current_undo_group.empty()); } -void Buffer::notify_saved() +void Buffer::notify_saved(FsStatus status) { if (not m_current_undo_group.empty()) commit_undo_group(); m_flags &= ~Flags::New; m_last_save_history_id = m_history_id; - m_fs_status.timestamp = get_fs_timestamp(m_name); + m_fs_status = status; } BufferCoord Buffer::advance(BufferCoord coord, ByteCount count) const -- cgit v1.2.3