mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 19:08:50 +00:00
Log the whole new input buffer once rather than each byte.
This commit is contained in:
parent
364a885b0c
commit
66a2720c56
6
input.c
6
input.c
@ -862,10 +862,12 @@ input_parse(struct window_pane *wp)
|
|||||||
notify_input(wp, evb);
|
notify_input(wp, evb);
|
||||||
off = 0;
|
off = 0;
|
||||||
|
|
||||||
|
log_debug("%s: %s, %zu bytes: %.*s", __func__, ictx->state->name, len,
|
||||||
|
(int)len, buf);
|
||||||
|
|
||||||
/* Parse the input. */
|
/* Parse the input. */
|
||||||
while (off < len) {
|
while (off < len) {
|
||||||
ictx->ch = buf[off++];
|
ictx->ch = buf[off++];
|
||||||
log_debug("%s: '%c' %s", __func__, ictx->ch, ictx->state->name);
|
|
||||||
|
|
||||||
/* Find the transition. */
|
/* Find the transition. */
|
||||||
itr = ictx->state->transitions;
|
itr = ictx->state->transitions;
|
||||||
@ -1070,7 +1072,7 @@ input_c0_dispatch(struct input_ctx *ictx)
|
|||||||
struct window_pane *wp = ictx->wp;
|
struct window_pane *wp = ictx->wp;
|
||||||
struct screen *s = sctx->s;
|
struct screen *s = sctx->s;
|
||||||
|
|
||||||
log_debug("%s: '%c", __func__, ictx->ch);
|
log_debug("%s: '%c'", __func__, ictx->ch);
|
||||||
|
|
||||||
switch (ictx->ch) {
|
switch (ictx->ch) {
|
||||||
case '\000': /* NUL */
|
case '\000': /* NUL */
|
||||||
|
Loading…
Reference in New Issue
Block a user