Don't test setting the WINDOW_ZOOM flag on a winlink, as it's set on the
window.
---
format.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/format.c b/format.c
index e7fd3e1..47b8b79 100644
--- a/format.c
+++ b/format.c
@@ -471,6 +471,8 @@ format_window(struct format_tree *ft, struct window *w)
format_add(ft, "window_height", "%u", w->sy);
format_add(ft, "window_layout", "%s", layout);
format_add(ft, "window_panes", "%u", window_count_panes(w));
+ format_add(ft, "window_zoomed_flag", "%u",
+ !!(w->flags & WINDOW_ZOOMED));
free(layout);
}
@@ -498,8 +500,6 @@ format_winlink(struct format_tree *ft, struct session *s,
struct winlink *wl)
!!(wl->flags & WINLINK_SILENCE));
format_add(ft, "window_last_flag", "%u",
!!(wl == TAILQ_FIRST(&s->lastw)));
- format_add(ft, "window_zoomed_flag", "%u",
- !!(wl->flags & WINDOW_ZOOMED));
free(flags);
}
--
2.1.3
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users