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:
parent
b764a0a63e
commit
b23af02ec4
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user