1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 12:36:11 +03:00

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())