mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Wrap all the individual format_* calls in a single format_defaults
functions.
This commit is contained in:
@ -107,9 +107,7 @@ cmd_list_windows_session(
|
||||
RB_FOREACH(wl, winlinks, &s->windows) {
|
||||
ft = format_create();
|
||||
format_add(ft, "line", "%u", n);
|
||||
format_session(ft, s);
|
||||
format_winlink(ft, s, wl);
|
||||
format_window_pane(ft, wl->window->active);
|
||||
format_defaults(ft, NULL, s, wl, NULL);
|
||||
|
||||
line = format_expand(ft, template);
|
||||
cmdq_print(cmdq, "%s", line);
|
||||
|
Reference in New Issue
Block a user