diff options
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; |