aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-09-06 20:47:50 +0100
committerThomas Adam <thomas@xteddy.org>2015-09-06 20:47:50 +0100
commit76688d204071b76fd3388e46e944e4b917c09625 (patch)
treeb6c7920003106991bbb8db46a432e47b16429c94 /input.c
parent2ebef95994953e49ae84862a65f9ee649a72e200 (diff)
parentaceae73b9a401c0b124a3534079e9c0d998f0dbd (diff)
downloadrtmux-76688d204071b76fd3388e46e944e4b917c09625.tar.gz
rtmux-76688d204071b76fd3388e46e944e4b917c09625.tar.bz2
rtmux-76688d204071b76fd3388e46e944e4b917c09625.zip
Merge branch 'obsd-master'
Conflicts: cfg.c tmux.c
Diffstat (limited to 'input.c')
-rw-r--r--input.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/input.c b/input.c
index cfe6b4af..ab56fc38 100644
--- a/input.c
+++ b/input.c
@@ -862,10 +862,12 @@ input_parse(struct window_pane *wp)
notify_input(wp, evb);
off = 0;
+ log_debug("%s: %%%u %s, %zu bytes: %.*s", __func__, wp->id,
+ ictx->state->name, len, (int)len, buf);
+
/* Parse the input. */
while (off < len) {
ictx->ch = buf[off++];
- log_debug("%s: '%c' %s", __func__, ictx->ch, ictx->state->name);
/* Find the transition. */
itr = ictx->state->transitions;
@@ -876,7 +878,7 @@ input_parse(struct window_pane *wp)
}
if (itr->first == -1 || itr->last == -1) {
/* No transition? Eh? */
- fatalx("No transition from state!");
+ fatalx("no transition from state");
}
/*
@@ -1070,7 +1072,7 @@ input_c0_dispatch(struct input_ctx *ictx)
struct window_pane *wp = ictx->wp;
struct screen *s = sctx->s;
- log_debug("%s: '%c", __func__, ictx->ch);
+ log_debug("%s: '%c'", __func__, ictx->ch);
switch (ictx->ch) {
case '\000': /* NUL */