summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authortcunha <tcunha>2009-09-22 14:03:11 +0000
committertcunha <tcunha>2009-09-22 14:03:11 +0000
commitb174c2bf19546baa2e00b6d4d132998c47bdef5f (patch)
treea97b57829fedbacaa2cefd7c281726bc40560a52 /cmd-send-keys.c
parent22873573011ea55b0823787aa3e69ba8c36bb08a (diff)
downloadtmux-old-b174c2bf19546baa2e00b6d4d132998c47bdef5f.tar.gz
tmux-old-b174c2bf19546baa2e00b6d4d132998c47bdef5f.tar.bz2
tmux-old-b174c2bf19546baa2e00b6d4d132998c47bdef5f.zip
Sync OpenBSD patchset 341:
Nuke -i option which isn't used anymore.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 5d6aa3eb..18d1f5f9 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-send-keys.c,v 1.21 2009/08/20 11:37:46 tcunha Exp $ */
+/* $Id: cmd-send-keys.c,v 1.22 2009/09/22 14:03:11 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <[email protected]>
@@ -33,7 +33,6 @@ size_t cmd_send_keys_print(struct cmd *, char *, size_t);
struct cmd_send_keys_data {
char *target;
- int idx;
u_int nkeys;
int *keys;
};
@@ -58,7 +57,6 @@ cmd_send_keys_parse(struct cmd *self, int argc, char **argv, char **cause)
self->data = data = xmalloc(sizeof *data);
data->target = NULL;
- data->idx = -1;
data->nkeys = 0;
data->keys = NULL;
@@ -143,8 +141,6 @@ cmd_send_keys_print(struct cmd *self, char *buf, size_t len)
return (off);
if (off < len && data->target != NULL)
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
- if (off < len && data->idx != -1)
- off += xsnprintf(buf + off, len - off, " -i %d", data->idx);
for (i = 0; i < data->nkeys; i++) {
if (off >= len)