mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Only do the automatic-rename dance if the pane has changed (seen output,
or new active pane).
This commit is contained in:
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);
|
||||
|
Reference in New Issue
Block a user