summaryrefslogtreecommitdiffstats
path: root/cmd-command-prompt.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-05-05 23:24:23 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-05-05 23:24:23 +0000
commite0f4697e7cfd1a09d6332eae607fd3a9a1181234 (patch)
treeee2c7974dfeedcddb80acbeb5bf23f4a74450a12 /cmd-command-prompt.c
parentc4a2fdf15b5f6cd35319e36636b7daee8061c2ab (diff)
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 'cmd-command-prompt.c')
-rw-r--r--cmd-command-prompt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c
index e3774256..b76ea8d1 100644
--- a/cmd-command-prompt.c
+++ b/cmd-command-prompt.c
@@ -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;
}
}