mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Move struct options into options.c.
This commit is contained in:
4
names.c
4
names.c
@ -58,7 +58,7 @@ check_window_name(struct window *w)
|
||||
if (w->active == NULL)
|
||||
return;
|
||||
|
||||
if (!options_get_number(&w->options, "automatic-rename"))
|
||||
if (!options_get_number(w->options, "automatic-rename"))
|
||||
return;
|
||||
|
||||
if (~w->active->flags & PANE_CHANGED) {
|
||||
@ -122,7 +122,7 @@ format_window_name(struct window *w)
|
||||
format_defaults_window(ft, w);
|
||||
format_defaults_pane(ft, w->active);
|
||||
|
||||
fmt = options_get_string(&w->options, "automatic-rename-format");
|
||||
fmt = options_get_string(w->options, "automatic-rename-format");
|
||||
name = format_expand(ft, fmt);
|
||||
|
||||
format_free(ft);
|
||||
|
Reference in New Issue
Block a user