Add a hook when the pane title changed.

This commit is contained in:
nicm
2020-07-24 07:05:37 +00:00
parent 112b0f417c
commit d329b035ce
3 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
if (args_has(args, 'T')) {
title = format_single_from_target(item, args_get(args, 'T'));
if (screen_set_title(&wp->base, title)) {
notify_pane("pane-title-changed", wp);
server_redraw_window_borders(wp->window);
server_status_window(wp->window);
}