summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-02-06 13:25:16 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-02-06 13:25:16 +0000
commit80b260b1b7896915d35330b223b21d9f20c212c2 (patch)
tree0eb092337c1016c7ae43f97b25cbabe538f2a086 /usr.bin/tmux/input.c
parentfb8314d927540e12afad829e8d01a367c17ddf3b (diff)
Fix logging of CSI parameters.
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 8024710be95..6002bfcfa72 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.109 2017/02/01 09:55:07 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.110 2017/02/06 13:25:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -871,9 +871,10 @@ input_parse(struct window_pane *wp)
buf = EVBUFFER_DATA(evb);
len = EVBUFFER_LENGTH(evb);
- notify_input(wp, evb);
off = 0;
+ notify_input(wp, evb);
+
log_debug("%s: %%%u %s, %zu bytes: %.*s", __func__, wp->id,
ictx->state->name, len, (int)len, buf);
@@ -1218,11 +1219,13 @@ input_csi_dispatch(struct input_ctx *ictx)
if (ictx->flags & INPUT_DISCARD)
return (0);
- if (input_split(ictx) != 0)
- return (0);
+
log_debug("%s: '%c' \"%s\" \"%s\"",
__func__, ictx->ch, ictx->interm_buf, ictx->param_buf);
+ if (input_split(ictx) != 0)
+ return (0);
+
entry = bsearch(ictx, input_csi_table, nitems(input_csi_table),
sizeof input_csi_table[0], input_table_compare);
if (entry == NULL) {