summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-19 19:47:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-19 19:47:29 +0000
commitabf7583934232cf6d4e39dd3e69eced896aa4cd2 (patch)
treee5145e18baef93ce150d27cdb019723cb376f914 /usr.bin/tmux/window.c
parentc01f548fa51ce05a636e9a0b279a428d8f7aa6fb (diff)
Change status line drawing to create the window list in a separate screen and
then copy it into the status line screen. This allows UTF-8 in window names and fixes some problems with #[] in window-status-format.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 368427ec9f3..b41b6a72a42 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.39 2009/11/13 17:33:07 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.40 2009/11/19 19:47:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -149,6 +149,8 @@ winlink_remove(struct winlinks *wwl, struct winlink *wl)
struct window *w = wl->window;
RB_REMOVE(winlinks, wwl, wl);
+ if (wl->status_text != NULL)
+ xfree(wl->status_text);
xfree(wl);
if (w->references == 0)