summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-05-06 08:35:39 +0000
committernicm <nicm>2015-05-06 08:35:39 +0000
commit31b1ab48521b4b608d87abd5413441905da84da8 (patch)
treed5ea932dbadd29eb8dfc940af46cde28f51a8dca /window.c
parent33a585c47fcceb55e79a67a5fc47902d6992e68d (diff)
Add a format window_linked which is 1 if a window has been linked
multiple times, also remove the default space in window_flags and use a conditional to add it in window-status-format (this means additional flags can be added in the option without extra spaces). From Thomas Adam with tweaks by me.
Diffstat (limited to 'window.c')
-rw-r--r--window.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/window.c b/window.c
index e4e41155..a2277e2e 100644
--- a/window.c
+++ b/window.c
@@ -643,7 +643,7 @@ window_destroy_panes(struct window *w)
}
}
-/* Return list of printable window flag symbols. No flags is just a space. */
+/* Retuns the printable flags on a window, empty string if no flags set. */
char *
window_printable_flags(struct session *s, struct winlink *wl)
{
@@ -663,8 +663,6 @@ window_printable_flags(struct session *s, struct winlink *wl)
flags[pos++] = '-';
if (wl->window->flags & WINDOW_ZOOMED)
flags[pos++] = 'Z';
- if (pos == 0)
- flags[pos++] = ' ';
flags[pos] = '\0';
return (xstrdup(flags));
}