mirror of https://github.com/tmux/tmux.git
support ignore osc 2 after user specify pane title
parent
4bb6da75ba
commit
887cdccacf
|
@ -212,6 +212,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)) {
|
||||
wp->base.ignore_osc_2 = 1;
|
||||
notify_pane("pane-title-changed", wp);
|
||||
server_redraw_window_borders(wp->window);
|
||||
server_status_window(wp->window);
|
||||
|
|
2
input.c
2
input.c
|
@ -2372,7 +2372,7 @@ input_exit_osc(struct input_ctx *ictx)
|
|||
switch (option) {
|
||||
case 0:
|
||||
case 2:
|
||||
if (screen_set_title(sctx->s, p) && wp != NULL) {
|
||||
if ( sctx->s->ignore_osc_2 == 0 && screen_set_title(sctx->s, p) && wp != NULL) {
|
||||
notify_pane("pane-title-changed", wp);
|
||||
server_redraw_window_borders(wp->window);
|
||||
server_status_window(wp->window);
|
||||
|
|
Loading…
Reference in New Issue