diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-02-06 17:15:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-02-06 17:15:33 +0000 |
commit | 8aba77b7be489a93dc843d7ef4378bd73b5385b1 (patch) | |
tree | 060d27ad5846fc444116eb205f9b2b72c186717f /window-more.c | |
parent | 5e6a7c85ccdbabda01e7c05a10f7bd8dcee47e70 (diff) | |
download | rtmux-8aba77b7be489a93dc843d7ef4378bd73b5385b1.tar.gz rtmux-8aba77b7be489a93dc843d7ef4378bd73b5385b1.tar.bz2 rtmux-8aba77b7be489a93dc843d7ef4378bd73b5385b1.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 'window-more.c')
-rw-r--r-- | window-more.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/window-more.c b/window-more.c index 28423e1a..84f37d53 100644 --- a/window-more.c +++ b/window-more.c @@ -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; |