summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-command-prompt.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-05-05 23:24:23 +0000
committernicm <nicm@openbsd.org>2010-05-05 23:24:23 +0000
commit643277e2d36afad565f1b438ca2d84acc94aacd8 (patch)
tree5dd5889b59d9ff3ed155fde09b4c4c8db0c4103a /usr.bin/tmux/cmd-command-prompt.c
parentCompile the additional sources to handle exceptions (diff)
downloadwireguard-openbsd-643277e2d36afad565f1b438ca2d84acc94aacd8.tar.xz
wireguard-openbsd-643277e2d36afad565f1b438ca2d84acc94aacd8.zip
Identical behaviour to select-prompt can now be obtained with
command-prompt, so remove select-prompt and change ' to be bound to command-prompt -p index "select-window -t :%%".
Diffstat (limited to 'usr.bin/tmux/cmd-command-prompt.c')
-rw-r--r--usr.bin/tmux/cmd-command-prompt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-command-prompt.c b/usr.bin/tmux/cmd-command-prompt.c
index ca3aa567e27..50b0b6002ae 100644
--- a/usr.bin/tmux/cmd-command-prompt.c
+++ b/usr.bin/tmux/cmd-command-prompt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-command-prompt.c,v 1.12 2009/11/13 19:53:29 nicm Exp $ */
+/* $OpenBSD: cmd-command-prompt.c,v 1.13 2010/05/05 23:24:23 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -81,6 +81,10 @@ cmd_command_prompt_init(struct cmd *self, int key)
case 'f':
data->template = xstrdup("find-window '%%'");
break;
+ case '\'':
+ data->template = xstrdup("select-window -t ':%%'");
+ data->prompts = xstrdup("index");
+ break;
}
}