summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-04-18 14:35:37 +0000
committernicm <nicm@openbsd.org>2018-04-18 14:35:37 +0000
commitb69086446f3dd70f2786f04bed3a4eb79f538baa (patch)
treefe0805d5ddcf84886ba02f94173bbb86df7d6291 /usr.bin/tmux/tmux.h
parentInclude source function name in grid_check_y logging. (diff)
downloadwireguard-openbsd-b69086446f3dd70f2786f04bed3a4eb79f538baa.tar.xz
wireguard-openbsd-b69086446f3dd70f2786f04bed3a4eb79f538baa.zip
Change how display-message uses the client. Originally it was only
intended as the target client where the message should be displayed but at some point (perhaps when -p was added), it was used for format expansion too. This means it can get a bit weird where you have client formats expanding for a client with a different current session than the target session. However, it is nice that display-message can be used to show information about a specific client. So change so that the -c client will be used if the session matches the target session (-t or default), otherwise the best client will be chosen.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index d07f1fdf7ff..0ccdc9dea3b 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.823 2018/04/10 10:48:44 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.824 2018/04/18 14:35:37 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1772,6 +1772,7 @@ long long args_strtonum(struct args *, u_char, long long, long long,
/* cmd-find.c */
int cmd_find_target(struct cmd_find_state *, struct cmdq_item *,
const char *, enum cmd_find_type, int);
+struct client *cmd_find_best_client(struct session *);
struct client *cmd_find_client(struct cmdq_item *, const char *, int);
void cmd_find_clear_state(struct cmd_find_state *, int);
int cmd_find_empty_state(struct cmd_find_state *);