diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-25 16:52:42 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-25 16:52:42 +0000 |
commit | 1ce325b31e1a81e40f2d9819ce65a51c4b251971 (patch) | |
tree | 33e2015f4909f8997b658fa21094f1f80d811b2b /cmd-split-window.c | |
parent | f5d38f2696840f8704f5540c35b4f0b7ba174e41 (diff) | |
download | rtmux-1ce325b31e1a81e40f2d9819ce65a51c4b251971.tar.gz rtmux-1ce325b31e1a81e40f2d9819ce65a51c4b251971.tar.bz2 rtmux-1ce325b31e1a81e40f2d9819ce65a51c4b251971.zip |
Sync OpenBSD patchset 296:
Print -l and -p when showing command, pointed out by Tiago Cunha.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index e1697796..f33ad562 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-split-window.c,v 1.23 2009-08-16 18:59:12 tcunha Exp $ */ +/* $Id: cmd-split-window.c,v 1.24 2009-08-25 16:52:42 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -237,6 +237,12 @@ cmd_split_window_print(struct cmd *self, char *buf, size_t len) off += xsnprintf(buf + off, len - off, " -d"); if (off < len && data->flag_horizontal) off += xsnprintf(buf + off, len - off, " -h"); + if (off < len && data->size > 0) + off += xsnprintf(buf + off, len - off, " -l %d", data->size); + if (off < len && data->percentage > 0) { + off += xsnprintf( + buf + off, len - off, " -p %d", data->percentage); + } if (off < len && data->target != NULL) off += cmd_prarg(buf + off, len - off, " -t ", data->target); if (off < len && data->cmd != NULL) |