summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-switch-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-17 14:39:37 +0000
committernicm <nicm@openbsd.org>2019-04-17 14:39:37 +0000
commita384e55be23bdba7ec94f13d0f10feed48e7f4c4 (patch)
tree79f00f624bc641fea78044aefdd7ecf0a99f64a7 /usr.bin/tmux/cmd-switch-client.c
parentBreak new window and pane creation common code from various commands and (diff)
downloadwireguard-openbsd-a384e55be23bdba7ec94f13d0f10feed48e7f4c4.tar.xz
wireguard-openbsd-a384e55be23bdba7ec94f13d0f10feed48e7f4c4.zip
Document that switch-client can change all of session,window,pane and
check for % in the target as well as ":.".
Diffstat (limited to 'usr.bin/tmux/cmd-switch-client.c')
-rw-r--r--usr.bin/tmux/cmd-switch-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c
index ee233720b3c..0978129cc54 100644
--- a/usr.bin/tmux/cmd-switch-client.c
+++ b/usr.bin/tmux/cmd-switch-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-switch-client.c,v 1.56 2019/04/17 14:37:48 nicm Exp $ */
+/* $OpenBSD: cmd-switch-client.c,v 1.57 2019/04/17 14:39:37 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -61,7 +61,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
if ((c = cmd_find_client(item, args_get(args, 'c'), 0)) == NULL)
return (CMD_RETURN_ERROR);
- if (tflag != NULL && tflag[strcspn(tflag, ":.")] != '\0') {
+ if (tflag != NULL && tflag[strcspn(tflag, ":.%")] != '\0') {
type = CMD_FIND_PANE;
flags = 0;
} else {