summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2008-06-05 21:54:47 +0000
committernicm <nicm>2008-06-05 21:54:47 +0000
commitbb77d1c490cf0476f75245464fd2dce273dbe2e4 (patch)
treed9ffa667bf9286ef81e1ae505f2cf2e90047769f /cmd-send-keys.c
parent0684cda274f56065d58bc672b7aca08a6931c642 (diff)
downloadtmux-old-bb77d1c490cf0476f75245464fd2dce273dbe2e4.tar.gz
tmux-old-bb77d1c490cf0476f75245464fd2dce273dbe2e4.tar.bz2
tmux-old-bb77d1c490cf0476f75245464fd2dce273dbe2e4.zip
Final missing print function.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index ca66c417..c96a0222 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -169,6 +169,7 @@ cmd_send_keys_print(struct cmd *self, char *buf, size_t len)
off += xsnprintf(buf, len, "%s", self->entry->name);
if (data == NULL)
return;
+ if (off < len && data->target != NULL)
off += xsnprintf(buf + off, len - off, " -t %s", data->target);
if (off < len && data->idx != -1)
off += xsnprintf(buf + off, len - off, " -i %d", data->idx);