diff options
author | 2010-02-06 17:15:33 +0000 | |
---|---|---|
committer | 2010-02-06 17:15:33 +0000 | |
commit | 9a53e128e82783ea59ef6d1323ae061f893b30e7 (patch) | |
tree | 73d3f8459a72afb2915c00727c817b42d2bf3e7c /usr.bin/tmux/window-more.c | |
parent | when receiving the first message of an rsn group key handshake (diff) | |
download | wireguard-openbsd-9a53e128e82783ea59ef6d1323ae061f893b30e7.tar.xz wireguard-openbsd-9a53e128e82783ea59ef6d1323ae061f893b30e7.zip |
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.
Diffstat (limited to 'usr.bin/tmux/window-more.c')
-rw-r--r-- | usr.bin/tmux/window-more.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 <nicm@users.sourceforge.net> @@ -53,6 +53,16 @@ struct window_more_mode_data { }; 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) { struct window_more_mode_data *data = wp->modedata; |