summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-05 21:54:47 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-05 21:54:47 +0000
commit741f8967b40121f0364c90635bd609df9cdcd933 (patch)
treef18732e75bf23ce426265251b3e734c2bdd55dd1 /cmd-send-keys.c
parent0b9b873a5505de6fdfb8f02cfbaef5fc82831a5f (diff)
Final missing print function.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 05912d0d..20ed38b7 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-send-keys.c,v 1.10 2008-06-05 21:25:00 nicm Exp $ */
+/* $Id: cmd-send-keys.c,v 1.11 2008-06-05 21:54:47 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);