summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-12-03 13:33:05 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-12-03 13:33:05 +0100
commitb23af02ec4e03af6ac07cbd494633f8145af9714 (patch)
treea4b8eba8d85a8d2da6e4237f99eb7c77f5e27ace /src
parentb764a0a63ed23434f5b6e82c4503c8efc7bbdf8b (diff)
fix quit modified file behaviour
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
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<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())