mirror of
https://github.com/tmux/tmux.git
synced 2025-01-26 16:13:34 +00:00
Only do the automatic-rename dance if the pane has changed (seen output,
or new active pane).
This commit is contained in:
parent
2ffbd5b5f0
commit
fc58e44f89
2
input.c
2
input.c
@ -844,6 +844,8 @@ input_parse(struct window_pane *wp)
|
||||
if (EVBUFFER_LENGTH(evb) == 0)
|
||||
return;
|
||||
|
||||
wp->flags |= PANE_CHANGED;
|
||||
|
||||
wp->window->flags |= WINDOW_ACTIVITY;
|
||||
wp->window->flags &= ~WINDOW_SILENCE;
|
||||
|
||||
|
4
names.c
4
names.c
@ -50,6 +50,10 @@ window_name_callback(unused int fd, unused short events, void *data)
|
||||
if (w->active == NULL)
|
||||
return;
|
||||
|
||||
if (~w->active->flags & PANE_CHANGED)
|
||||
return;
|
||||
w->active->flags &= ~PANE_CHANGED;
|
||||
|
||||
if (!options_get_number(&w->options, "automatic-rename")) {
|
||||
if (event_initialized(&w->name_timer))
|
||||
event_del(&w->name_timer);
|
||||
|
1
tmux.h
1
tmux.h
@ -826,6 +826,7 @@ struct window_pane {
|
||||
#define PANE_RESIZE 0x8
|
||||
#define PANE_FOCUSPUSH 0x10
|
||||
#define PANE_INPUTOFF 0x20
|
||||
#define PANE_CHANGED 0x40
|
||||
|
||||
int argc;
|
||||
char **argv;
|
||||
|
Loading…
Reference in New Issue
Block a user