mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
90158b5977
@ -198,6 +198,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
if (args_has(args, 'T')) {
|
if (args_has(args, 'T')) {
|
||||||
title = format_single_from_target(item, args_get(args, 'T'));
|
title = format_single_from_target(item, args_get(args, 'T'));
|
||||||
if (screen_set_title(&wp->base, title)) {
|
if (screen_set_title(&wp->base, title)) {
|
||||||
|
notify_pane("pane-title-changed", wp);
|
||||||
server_redraw_window_borders(wp->window);
|
server_redraw_window_borders(wp->window);
|
||||||
server_status_window(wp->window);
|
server_status_window(wp->window);
|
||||||
}
|
}
|
||||||
|
3
input.c
3
input.c
@ -1867,6 +1867,7 @@ input_csi_dispatch_winops(struct input_ctx *ictx)
|
|||||||
case 2:
|
case 2:
|
||||||
screen_pop_title(sctx->s);
|
screen_pop_title(sctx->s);
|
||||||
if (wp != NULL) {
|
if (wp != NULL) {
|
||||||
|
notify_pane("pane-title-changed", wp);
|
||||||
server_redraw_window_borders(wp->window);
|
server_redraw_window_borders(wp->window);
|
||||||
server_status_window(wp->window);
|
server_status_window(wp->window);
|
||||||
}
|
}
|
||||||
@ -2261,6 +2262,7 @@ input_exit_osc(struct input_ctx *ictx)
|
|||||||
case 0:
|
case 0:
|
||||||
case 2:
|
case 2:
|
||||||
if (screen_set_title(sctx->s, p) && wp != NULL) {
|
if (screen_set_title(sctx->s, p) && wp != NULL) {
|
||||||
|
notify_pane("pane-title-changed", wp);
|
||||||
server_redraw_window_borders(wp->window);
|
server_redraw_window_borders(wp->window);
|
||||||
server_status_window(wp->window);
|
server_status_window(wp->window);
|
||||||
}
|
}
|
||||||
@ -2326,6 +2328,7 @@ input_exit_apc(struct input_ctx *ictx)
|
|||||||
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
||||||
|
|
||||||
if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) {
|
if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) {
|
||||||
|
notify_pane("pane-title-changed", wp);
|
||||||
server_redraw_window_borders(wp->window);
|
server_redraw_window_borders(wp->window);
|
||||||
server_status_window(wp->window);
|
server_status_window(wp->window);
|
||||||
}
|
}
|
||||||
|
@ -1120,6 +1120,7 @@ const struct options_table_entry options_table[] = {
|
|||||||
OPTIONS_TABLE_PANE_HOOK("pane-focus-out", ""),
|
OPTIONS_TABLE_PANE_HOOK("pane-focus-out", ""),
|
||||||
OPTIONS_TABLE_PANE_HOOK("pane-mode-changed", ""),
|
OPTIONS_TABLE_PANE_HOOK("pane-mode-changed", ""),
|
||||||
OPTIONS_TABLE_PANE_HOOK("pane-set-clipboard", ""),
|
OPTIONS_TABLE_PANE_HOOK("pane-set-clipboard", ""),
|
||||||
|
OPTIONS_TABLE_PANE_HOOK("pane-title-changed", ""),
|
||||||
OPTIONS_TABLE_HOOK("session-closed", ""),
|
OPTIONS_TABLE_HOOK("session-closed", ""),
|
||||||
OPTIONS_TABLE_HOOK("session-created", ""),
|
OPTIONS_TABLE_HOOK("session-created", ""),
|
||||||
OPTIONS_TABLE_HOOK("session-renamed", ""),
|
OPTIONS_TABLE_HOOK("session-renamed", ""),
|
||||||
|
Loading…
Reference in New Issue
Block a user