Add session name filtering for KakBegin hook

This commit is contained in:
Delapouite 2017-12-21 22:22:33 +01:00
parent 9b83589b18
commit 74898120ed
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ of the given *group*.
*InputModeChange* `<old mode>:<new mode>`:: *InputModeChange* `<old mode>:<new mode>`::
Triggered whenever the current input mode changes Triggered whenever the current input mode changes
*KakBegin*:: *KakBegin* `session name`::
kakoune has started, this hook is called just after reading the user kakoune has started, this hook is called just after reading the user
configuration files configuration files

View File

@ -618,7 +618,7 @@ int run_server(StringView session, StringView server_init,
{ {
Context empty_context{Context::EmptyContextFlag{}}; Context empty_context{Context::EmptyContextFlag{}};
global_scope.hooks().run_hook("KakBegin", "", empty_context); global_scope.hooks().run_hook("KakBegin", session, empty_context);
} }
if (not files.empty()) try if (not files.empty()) try