diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-05-14 14:33:39 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-05-14 14:33:39 +0000 |
commit | 9900e28ba88526eec3ba623ea1ebc94116257c97 (patch) | |
tree | 99925eae7e89558ff364cb594f69eb7401aa0ac8 /cmd-command-prompt.c | |
parent | fc69b9ccb79fc5d1a345918d1ceccf990eb723ef (diff) | |
download | rtmux-9900e28ba88526eec3ba623ea1ebc94116257c97.tar.gz rtmux-9900e28ba88526eec3ba623ea1ebc94116257c97.tar.bz2 rtmux-9900e28ba88526eec3ba623ea1ebc94116257c97.zip |
Sync OpenBSD patchset 697:
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 37814cb9..896923b9 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-command-prompt.c,v 1.27 2009-11-14 17:56:39 tcunha Exp $ */ +/* $Id: cmd-command-prompt.c,v 1.28 2010-05-14 14:33:39 tcunha 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; } } |