From b23af02ec4e03af6ac07cbd494633f8145af9714 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 3 Dec 2012 13:33:05 +0100 Subject: [PATCH] fix quit modified file behaviour --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 3b25d2f6..e7c1047e 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -359,7 +359,7 @@ void quit(const CommandParameters& params, Context& context) std::vector 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())