mirror of https://github.com/tmux/tmux.git
Print -l and -p when showing command, pointed out by Tiago Cunha.
parent
be16f79438
commit
f949107a32
|
@ -237,6 +237,12 @@ cmd_split_window_print(struct cmd *self, char *buf, size_t len)
|
||||||
off += xsnprintf(buf + off, len - off, " -d");
|
off += xsnprintf(buf + off, len - off, " -d");
|
||||||
if (off < len && data->flag_horizontal)
|
if (off < len && data->flag_horizontal)
|
||||||
off += xsnprintf(buf + off, len - off, " -h");
|
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)
|
if (off < len && data->target != NULL)
|
||||||
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
|
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
|
||||||
if (off < len && data->cmd != NULL)
|
if (off < len && data->cmd != NULL)
|
||||||
|
|
Loading…
Reference in New Issue