aboutsummaryrefslogtreecommitdiff
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-19 17:49:53 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-19 17:49:53 +0000
commitc3859d1df1fbdb63b8aab15d10266e26c5e428eb (patch)
tree8e83d8986670137d3c6e4f54aa1f1dbb92533ae1 /cmd-list-keys.c
parent5a5e285be8caf98c7777a2afa717d04ac44c9f75 (diff)
downloadrtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.tar.gz
rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.tar.bz2
rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.zip
Add copy-pipe mode command to copy selection and also pipe to a command.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index 51eeb674..3cb35f21 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -138,9 +138,12 @@ cmd_list_keys_table(struct cmd *self, struct cmd_ctx *ctx)
mode = "c";
cmdstr = mode_key_tostring(mtab->cmdstr, mbind->cmd);
if (cmdstr != NULL) {
- ctx->print(ctx, "bind-key -%st %s%s %*s %s",
+ ctx->print(ctx, "bind-key -%st %s%s %*s %s%s%s%s",
mode, any_mode && *mode == '\0' ? " " : "",
- mtab->name, (int) width, key, cmdstr);
+ mtab->name, (int) width, key, cmdstr,
+ mbind->arg != NULL ? " \"" : "",
+ mbind->arg != NULL ? mbind->arg : "",
+ mbind->arg != NULL ? "\"": "");
}
}