aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-19 19:47:28 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-19 19:47:28 +0000
commit33b337f6185aba3b59962db17de9b08af48de301 (patch)
treea824682df5669942c5ead73278beb6882d16e7e5 /window.c
parent543fb99bc60a82eeb8c1e3fa47cdcb86a1e2fb33 (diff)
downloadrtmux-33b337f6185aba3b59962db17de9b08af48de301.tar.gz
rtmux-33b337f6185aba3b59962db17de9b08af48de301.tar.bz2
rtmux-33b337f6185aba3b59962db17de9b08af48de301.zip
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 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 7e945129..be61e73c 100644
--- a/window.c
+++ b/window.c
@@ -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)