mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 13:02:01 +03:00
Buffer: call BufCreate hook on construction
This commit is contained in:
parent
8e39edc567
commit
0b4ed2280f
@ -4,6 +4,7 @@
|
||||
#include "window.hh"
|
||||
#include "assert.hh"
|
||||
#include "utils.hh"
|
||||
#include "hooks_manager.hh"
|
||||
|
||||
namespace Kakoune
|
||||
{
|
||||
@ -26,6 +27,7 @@ Buffer::Buffer(const std::string& name, Type type,
|
||||
{
|
||||
BufferManager::instance().register_buffer(this);
|
||||
|
||||
HooksManager::instance().run_hook("BufCreate", name, Context(*this));
|
||||
compute_lines();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user