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:
parent
ae3098f5b0
commit
905af05c61
@ -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());
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user