1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00

Move Context scope access helpers as inline methods

This commit is contained in:
Maxime Coste 2015-07-13 13:43:52 +01:00
parent ae3098f5b0
commit 905af05c61
2 changed files with 4 additions and 24 deletions

View File

@ -65,26 +65,6 @@ Scope& Context::scope() const
return GlobalScope::instance(); return GlobalScope::instance();
} }
OptionManager& Context::options() const
{
return scope().options();
}
HookManager& Context::hooks() const
{
return scope().hooks();
}
KeymapManager& Context::keymaps() const
{
return scope().keymaps();
}
AliasRegistry& Context::aliases() const
{
return scope().aliases();
}
void Context::set_client(Client& client) void Context::set_client(Client& client)
{ {
kak_assert(not has_client()); kak_assert(not has_client());

View File

@ -102,10 +102,10 @@ public:
Scope& scope() const; Scope& scope() const;
OptionManager& options() const; OptionManager& options() const { return scope().options(); }
HookManager& hooks() const; HookManager& hooks() const { return scope().hooks(); }
KeymapManager& keymaps() const; KeymapManager& keymaps() const { return scope().keymaps(); }
AliasRegistry& aliases() const; AliasRegistry& aliases() const { return scope().aliases(); }
void print_status(DisplayLine status) const; void print_status(DisplayLine status) const;