From f949107a32fed3f1bab6ac4227a7c6b03b233643 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 25 Aug 2009 14:53:22 +0000 Subject: [PATCH] Print -l and -p when showing command, pointed out by Tiago Cunha. --- cmd-split-window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd-split-window.c b/cmd-split-window.c index 09bd214e..d5f0ba6c 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -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)