From: nicm Date: Mon, 12 Sep 2022 12:02:17 +0000 (+0000) Subject: Don't use options from pane if pane is NULL. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3ea016a03b5b03ece9864d34924a83b5c00230ba;p=openbsd Don't use options from pane if pane is NULL. --- diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 0f2210d712b..39f6af09d6d 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.208 2022/08/31 08:07:05 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.209 2022/09/12 12:02:17 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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);