Run BufCreate hook *before* Buf{Open,New}File
This commit is contained in:
parent
4495aefea6
commit
1c0bdd8c85
|
@ -107,6 +107,8 @@ void Buffer::on_registered()
|
||||||
|
|
||||||
options().register_watcher(*this);
|
options().register_watcher(*this);
|
||||||
|
|
||||||
|
run_hook_in_own_context("BufCreate", m_name);
|
||||||
|
|
||||||
if (m_flags & Flags::File)
|
if (m_flags & Flags::File)
|
||||||
{
|
{
|
||||||
if (m_flags & Buffer::Flags::New)
|
if (m_flags & Buffer::Flags::New)
|
||||||
|
@ -118,8 +120,6 @@ void Buffer::on_registered()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
run_hook_in_own_context("BufCreate", m_name);
|
|
||||||
|
|
||||||
for (auto& option : options().flatten_options())
|
for (auto& option : options().flatten_options())
|
||||||
on_option_changed(*option);
|
on_option_changed(*option);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user