From 8aba77b7be489a93dc843d7ef4378bd73b5385b1 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott 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. --- window-more.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'window-more.c') diff --git a/window-more.c b/window-more.c index 28423e1a..84f37d53 100644 --- a/window-more.c +++ b/window-more.c @@ -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