summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2023-08-23 08:30:08 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2023-08-23 08:30:08 +0000
commitd771da95738fdc452b63ee2d3e82f26e1d71e74e (patch)
tree37c7d951c1c884e13e2013143925211f0ecdf49e /usr.bin/tmux/input.c
parent03acd21a4e00752d82ce1f3198960b52c475396e (diff)
Log what input_dcs_dispatch does with the input data.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index a00a340f4e6..41826662b17 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.219 2023/08/08 08:21:29 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.220 2023/08/23 08:30:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2248,10 +2248,13 @@ input_dcs_dispatch(struct input_ctx *ictx)
if (wp == NULL)
return (0);
- if (ictx->flags & INPUT_DISCARD)
+ if (ictx->flags & INPUT_DISCARD) {
+ log_debug("%s: %zu bytes (discard)", __func__, len);
return (0);
- allow_passthrough = options_get_number(wp->options,
- "allow-passthrough");
+ }
+ log_debug("%s: %zu bytes", __func__, len);
+
+ allow_passthrough = options_get_number(wp->options, "allow-passthrough");
if (!allow_passthrough)
return (0);
log_debug("%s: \"%s\"", __func__, buf);