mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-24 20:13:00 +03:00
add WinDisplay hook
This commit is contained in:
parent
60599917cc
commit
38a46a6682
@ -361,7 +361,9 @@ existing hooks are:
|
||||
* +InsertKey+: A key is received in insert mode, the key is used for filtering
|
||||
* +InsertMove+: The cursor moved (without inserting) in insert mode, the key
|
||||
that triggered the move is used for filtering
|
||||
* +WinCreate+: A window was created
|
||||
* +WinCreate+: A window was created, the filtering text is the buffer name
|
||||
* +WinDisplay+: A window was bound a client, the filtering text is the buffer
|
||||
name
|
||||
* +WinSetOption+: An option was set in a window context, the filtering text
|
||||
is '<option_name>=<new_value>'
|
||||
* +BufNew+: A buffer for a new file has been created, filename is used for
|
||||
|
@ -69,8 +69,12 @@ struct Context
|
||||
void change_editor(Editor& editor)
|
||||
{
|
||||
m_editor.reset(&editor);
|
||||
if (has_window() && has_ui())
|
||||
window().set_dimensions(ui().dimensions());
|
||||
if (has_window())
|
||||
{
|
||||
if (has_ui())
|
||||
window().set_dimensions(ui().dimensions());
|
||||
window().hooks().run_hook("WinDisplay", buffer().name(), *this);
|
||||
}
|
||||
}
|
||||
|
||||
OptionManager& options() const
|
||||
|
Loading…
Reference in New Issue
Block a user