1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 06:08:05 +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();
}
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)
{
kak_assert(not has_client());

View File

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