diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-19 22:37:04 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-19 22:37:04 +0000 |
commit | 7a9bfabf7ad3899c8217df72e8d883282f9224af (patch) | |
tree | 112dd95e968ba04f125ceb3abc38237c16d52e15 /window.c | |
parent | cbc7a23e33784b8de530caa83214c484e94f6403 (diff) | |
download | rtmux-7a9bfabf7ad3899c8217df72e8d883282f9224af.tar.gz rtmux-7a9bfabf7ad3899c8217df72e8d883282f9224af.tar.bz2 rtmux-7a9bfabf7ad3899c8217df72e8d883282f9224af.zip |
Sync OpenBSD patchset 554:
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.122 2009-11-14 17:48:39 tcunha Exp $ */ +/* $Id: window.c,v 1.123 2009-11-19 22:37:04 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -147,6 +147,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) |