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