mirror of
https://github.com/tmux/tmux.git
synced 2024-11-10 13:48:48 +00:00
Don't use options from pane if pane is NULL.
This commit is contained in:
parent
9ab1ba36cd
commit
a2cc601c3d
4
input.c
4
input.c
@ -2242,7 +2242,6 @@ static int
|
|||||||
input_dcs_dispatch(struct input_ctx *ictx)
|
input_dcs_dispatch(struct input_ctx *ictx)
|
||||||
{
|
{
|
||||||
struct window_pane *wp = ictx->wp;
|
struct window_pane *wp = ictx->wp;
|
||||||
struct options *oo = wp->options;
|
|
||||||
struct screen_write_ctx *sctx = &ictx->ctx;
|
struct screen_write_ctx *sctx = &ictx->ctx;
|
||||||
u_char *buf = ictx->input_buf;
|
u_char *buf = ictx->input_buf;
|
||||||
size_t len = ictx->input_len;
|
size_t len = ictx->input_len;
|
||||||
@ -2254,7 +2253,8 @@ input_dcs_dispatch(struct input_ctx *ictx)
|
|||||||
return (0);
|
return (0);
|
||||||
if (ictx->flags & INPUT_DISCARD)
|
if (ictx->flags & INPUT_DISCARD)
|
||||||
return (0);
|
return (0);
|
||||||
allow_passthrough = options_get_number(oo, "allow-passthrough");
|
allow_passthrough = options_get_number(wp->options,
|
||||||
|
"allow-passthrough");
|
||||||
if (!allow_passthrough)
|
if (!allow_passthrough)
|
||||||
return (0);
|
return (0);
|
||||||
log_debug("%s: \"%s\"", __func__, buf);
|
log_debug("%s: \"%s\"", __func__, buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user