diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-12-19 13:39:30 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-12-19 13:39:30 +1100 |
| commit | a3445232a47e487f06a42e7c184362bcfa1b7179 (patch) | |
| tree | 6178158cc5f3b195b7ba02f32708837c8d760c01 /src/buffer.cc | |
| parent | b68490ef11734c404f8a18f1babd8004aca2de06 (diff) | |
Update fs status post buffer write
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
