fix quit modified file behaviour

This commit is contained in:
Maxime Coste 2012-12-03 13:33:05 +01:00
parent b764a0a63e
commit b23af02ec4

View File

@ -359,7 +359,7 @@ void quit(const CommandParameters& params, Context& context)
std::vector<String> names;
for (auto& buffer : BufferManager::instance())
{
if (buffer->flags() != Buffer::Flags::File and buffer->is_modified())
if ((buffer->flags() & Buffer::Flags::File) and buffer->is_modified())
names.push_back(buffer->name());
}
if (not names.empty())