summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-06-16 18:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2017-06-16 18:01:13 +0100
commita61200776de8218306730e2325cd29d013861e4c (patch)
treed7343968ec4791cb5db0a2e49af2b30e471be9cc /cmd-find.c
parent233bae6992fd1ea5c38ad7bcd26a0ea362dd0f2a (diff)
parenta67df177634f5ff3f6a24598d4016f61a794af62 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/cmd-find.c b/cmd-find.c
index ef1ce4aa..9da0a9c2 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -949,7 +949,7 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
struct mouse_event *m;
struct cmd_find_state current;
char *colon, *period, *copy = NULL;
- const char *session, *window, *pane;
+ const char *session, *window, *pane, *s;
int window_only = 0, pane_only = 0;
/* Can fail flag implies quiet. */
@@ -957,10 +957,18 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
flags |= CMD_FIND_QUIET;
/* Log the arguments. */
+ if (type == CMD_FIND_PANE)
+ s = "pane";
+ else if (type == CMD_FIND_WINDOW)
+ s = "window";
+ else if (type == CMD_FIND_SESSION)
+ s = "session";
+ else
+ s = "unknown";
if (target == NULL)
- log_debug("%s: target none, type %d", __func__, type);
+ log_debug("%s: target none, type %s", __func__, s);
else
- log_debug("%s: target %s, type %d", __func__, target, type);
+ log_debug("%s: target %s, type %s", __func__, target, s);
log_debug("%s: item %p, flags %#x", __func__, item, flags);
/* Clear new state. */