Merge remote-tracking branch 'lenormf/fix-kill-command'

This commit is contained in:
Maxime Coste 2018-08-26 12:13:36 +10:00
commit e15f6a9e00

View File

@ -439,7 +439,7 @@ void kill(const ParametersParser& parser, Context& context, const ShellContext&)
{ {
auto& client_manager = ClientManager::instance(); auto& client_manager = ClientManager::instance();
if (not force and client_manager.count() == 1) if (not force)
ensure_all_buffers_are_saved(); ensure_all_buffers_are_saved();
const int status = parser.positional_count() > 0 ? str_to_int(parser[0]) : 0; const int status = parser.positional_count() > 0 ? str_to_int(parser[0]) : 0;