From 6902301674350d7f31c39c271636e65709fbfb6d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 28 Nov 2014 13:18:08 +0000 Subject: [PATCH] Fix bug in :debug command --- src/commands.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index 89557d5b..392699d6 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -788,13 +788,13 @@ const CommandDesc debug_cmd = { write_debug("pid: " + to_string(getpid())); write_debug("session: " + Server::instance().session()); } - if (parser[0] == "buffers") + else if (parser[0] == "buffers") { write_debug("Buffers:"); for (auto& buffer : BufferManager::instance()) write_debug(buffer->debug_description()); } - if (parser[0] == "options") + else if (parser[0] == "options") { write_debug("Options:"); for (auto& option : context.options().flatten_options())