From fd021de7d7b6e5be8f4b55a395dbd6fdeefa8910 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 12 Sep 2013 23:49:08 +0200 Subject: [PATCH] use directly context.client() for getting the kak_client env var value --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index d068e986..a8ae8192 100644 --- a/src/main.cc +++ b/src/main.cc @@ -95,7 +95,7 @@ void register_env_vars() { return Server::instance().filename(); }); shell_manager.register_env_var("client", [](const String& name, const Context& context) - { return ClientManager::instance().get_client(context).name(); }); + { return context.client().name(); }); shell_manager.register_env_var("cursor_line", [](const String& name, const Context& context) { return to_string(context.editor().main_selection().last().line + 1); });