From 9a53e128e82783ea59ef6d1323ae061f893b30e7 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 6 Feb 2010 17:15:33 +0000 Subject: Instead of bailing out on the first configuration file error, carry on, collecting all the errors, then start with the active window in more mode displaying them. --- usr.bin/tmux/window-more.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/window-more.c') diff --git a/usr.bin/tmux/window-more.c b/usr.bin/tmux/window-more.c index 008dec75938..825eb4a0092 100644 --- a/usr.bin/tmux/window-more.c +++ b/usr.bin/tmux/window-more.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-more.c,v 1.12 2010/02/01 22:15:51 nicm Exp $ */ +/* $OpenBSD: window-more.c,v 1.13 2010/02/06 17:15:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -52,6 +52,16 @@ struct window_more_mode_data { u_int top; }; +void +window_more_add(struct window_pane *wp, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + window_more_vadd(wp, fmt, ap); + va_end(ap); +} + void window_more_vadd(struct window_pane *wp, const char *fmt, va_list ap) { -- cgit v1.2.3-59-g8ed1b