=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-break-pane.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/tmux/cmd-break-pane.c 2011/05/08 21:30:00 1.11 --- src/usr.bin/tmux/cmd-break-pane.c 2012/02/02 00:10:11 1.12 *************** *** 1,4 **** ! /* $OpenBSD: cmd-break-pane.c,v 1.11 2011/05/08 21:30:00 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-break-pane.c,v 1.12 2012/02/02 00:10:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 46,51 **** --- 46,52 ---- struct session *s; struct window_pane *wp; struct window *w; + char *name; char *cause; int base_idx; *************** *** 74,80 **** w = wp->window = window_create1(s->sx, s->sy); TAILQ_INSERT_HEAD(&w->panes, wp, entry); w->active = wp; ! w->name = default_window_name(w); layout_init(w); base_idx = options_get_number(&s->options, "base-index"); --- 75,83 ---- w = wp->window = window_create1(s->sx, s->sy); TAILQ_INSERT_HEAD(&w->panes, wp, entry); w->active = wp; ! name = default_window_name(w); ! window_set_name(w, name); ! xfree(name); layout_init(w); base_idx = options_get_number(&s->options, "base-index");