mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Fix logging of CSI parameters.
This commit is contained in:
parent
3fd34e70e5
commit
d150d9b384
9
input.c
9
input.c
@ -871,9 +871,10 @@ input_parse(struct window_pane *wp)
|
|||||||
|
|
||||||
buf = EVBUFFER_DATA(evb);
|
buf = EVBUFFER_DATA(evb);
|
||||||
len = EVBUFFER_LENGTH(evb);
|
len = EVBUFFER_LENGTH(evb);
|
||||||
notify_input(wp, evb);
|
|
||||||
off = 0;
|
off = 0;
|
||||||
|
|
||||||
|
notify_input(wp, evb);
|
||||||
|
|
||||||
log_debug("%s: %%%u %s, %zu bytes: %.*s", __func__, wp->id,
|
log_debug("%s: %%%u %s, %zu bytes: %.*s", __func__, wp->id,
|
||||||
ictx->state->name, len, (int)len, buf);
|
ictx->state->name, len, (int)len, buf);
|
||||||
|
|
||||||
@ -1218,11 +1219,13 @@ input_csi_dispatch(struct input_ctx *ictx)
|
|||||||
|
|
||||||
if (ictx->flags & INPUT_DISCARD)
|
if (ictx->flags & INPUT_DISCARD)
|
||||||
return (0);
|
return (0);
|
||||||
if (input_split(ictx) != 0)
|
|
||||||
return (0);
|
|
||||||
log_debug("%s: '%c' \"%s\" \"%s\"",
|
log_debug("%s: '%c' \"%s\" \"%s\"",
|
||||||
__func__, ictx->ch, ictx->interm_buf, ictx->param_buf);
|
__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),
|
entry = bsearch(ictx, input_csi_table, nitems(input_csi_table),
|
||||||
sizeof input_csi_table[0], input_table_compare);
|
sizeof input_csi_table[0], input_table_compare);
|
||||||
if (entry == NULL) {
|
if (entry == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user