=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-new-session.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/tmux/cmd-new-session.c 2010/02/06 17:15:33 1.26 --- src/usr.bin/tmux/cmd-new-session.c 2010/02/06 23:22:27 1.27 *************** *** 1,4 **** ! /* $OpenBSD: cmd-new-session.c,v 1.26 2010/02/06 17:15:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-new-session.c,v 1.27 2010/02/06 23:22:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 285,299 **** * If there are still configuration file errors to display, put the new * session's current window into more mode and display them now. */ ! if (cfg_finished && cfg_ncauses != 0) { wp = s->curw->window->active; window_pane_set_mode(wp, &window_more_mode); ! for (i = 0; i < cfg_ncauses; i++) { ! window_more_add(wp, "%s", cfg_causes[i]); ! xfree(cfg_causes[i]); } ! xfree(cfg_causes); ! cfg_ncauses = 0; } return (!detached); /* 1 means don't tell command client to exit */ --- 285,299 ---- * If there are still configuration file errors to display, put the new * session's current window into more mode and display them now. */ ! if (cfg_finished && !ARRAY_EMPTY(&cfg_causes)) { wp = s->curw->window->active; window_pane_set_mode(wp, &window_more_mode); ! for (i = 0; i < ARRAY_LENGTH(&cfg_causes); i++) { ! cause = ARRAY_ITEM(&cfg_causes, i); ! window_more_add(wp, "%s", cause); ! xfree(cause); } ! ARRAY_FREE(&cfg_causes); } return (!detached); /* 1 means don't tell command client to exit */