diff options
author | 2009-08-25 14:53:22 +0000 | |
---|---|---|
committer | 2009-08-25 14:53:22 +0000 | |
commit | adb11aecd9a21182c6f3283ce34c6555daee5848 (patch) | |
tree | ff49a88b76dc91f0ff55eb56e32f36eae69e6519 /usr.bin/tmux/cmd-split-window.c | |
parent | Paragual -> Paraguay; (sort of) from frantisek holop (diff) | |
download | wireguard-openbsd-adb11aecd9a21182c6f3283ce34c6555daee5848.tar.xz wireguard-openbsd-adb11aecd9a21182c6f3283ce34c6555daee5848.zip |
Print -l and -p when showing command, pointed out by Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux/cmd-split-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-split-window.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index 1bc2d907bb5..7442ec8a015 100644 --- a/usr.bin/tmux/cmd-split-window.c +++ b/usr.bin/tmux/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-split-window.c,v 1.9 2009/08/13 19:04:00 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.10 2009/08/25 14:53:22 nicm 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) |