From 06e06d6ea67f10ececd7232471505e7d8f36d509 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 16 Sep 2013 19:15:13 +0100 Subject: remove print_status from UserInterface, pass status line to draw Client store the current status line. This way calls to print status do not force the user interface to display directly. --- src/context.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/context.cc') diff --git a/src/context.cc b/src/context.cc index cf00bc0a..f81d2b9e 100644 --- a/src/context.cc +++ b/src/context.cc @@ -75,10 +75,10 @@ HookManager& Context::hooks() const return GlobalHooks::instance(); } -void Context::print_status(const DisplayLine& status) const +void Context::print_status(DisplayLine status) const { - if (has_ui()) - ui().print_status(status); + if (has_client()) + client().print_status(std::move(status)); } void Context::push_jump() -- cgit v1.2.3