summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authornicm <nicm>2022-09-12 12:02:17 +0000
committernicm <nicm>2022-09-12 12:02:17 +0000
commita2cc601c3d1a569037ccd238b2638b5c416baca8 (patch)
treefd043c14a0dc9d1f509ba3fb797c61ffa4926173 /input.c
parent9ab1ba36cd2de4ca83694c3d475061323ffcc4d4 (diff)
Don't use options from pane if pane is NULL.
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 37d64218..8b174769 100644
--- a/input.c
+++ b/input.c
@@ -2242,7 +2242,6 @@ static int
input_dcs_dispatch(struct input_ctx *ictx)
{
struct window_pane *wp = ictx->wp;
- struct options *oo = wp->options;
struct screen_write_ctx *sctx = &ictx->ctx;
u_char *buf = ictx->input_buf;
size_t len = ictx->input_len;
@@ -2254,7 +2253,8 @@ input_dcs_dispatch(struct input_ctx *ictx)
return (0);
if (ictx->flags & INPUT_DISCARD)
return (0);
- allow_passthrough = options_get_number(oo, "allow-passthrough");
+ allow_passthrough = options_get_number(wp->options,
+ "allow-passthrough");
if (!allow_passthrough)
return (0);
log_debug("%s: \"%s\"", __func__, buf);