diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-09-16 19:15:13 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-09-16 19:15:13 +0100 |
| commit | 06e06d6ea67f10ececd7232471505e7d8f36d509 (patch) | |
| tree | 478b39028f534bb6b89b16ffcffa54c83c61b3c2 /src/context.cc | |
| parent | 49903523a7f28c18d324bf605876b9d18a97047b (diff) | |
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.
Diffstat (limited to 'src/context.cc')
| -rw-r--r-- | src/context.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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() |
