Consider non-files buffers as never modified

This commit is contained in:
Maxime Coste 2017-06-28 06:48:24 +01:00
parent 641acc5943
commit cc946764ed

View File

@ -595,8 +595,9 @@ BufferCoord Buffer::replace(BufferCoord begin, BufferCoord end, StringView conte
bool Buffer::is_modified() const bool Buffer::is_modified() const
{ {
return m_history_cursor != m_last_save_history_cursor return m_flags & Flags::File and
or not m_current_undo_group.empty(); (m_history_cursor != m_last_save_history_cursor or
not m_current_undo_group.empty());
} }
void Buffer::notify_saved() void Buffer::notify_saved()