mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Do not use NULL window, GitHub issue 3747.
This commit is contained in:
5
input.c
5
input.c
@ -2287,16 +2287,19 @@ input_dcs_dispatch(struct input_ctx *ictx)
|
|||||||
const u_int prefixlen = (sizeof prefix) - 1;
|
const u_int prefixlen = (sizeof prefix) - 1;
|
||||||
long long allow_passthrough = 0;
|
long long allow_passthrough = 0;
|
||||||
#ifdef ENABLE_SIXEL
|
#ifdef ENABLE_SIXEL
|
||||||
struct window *w = wp->window;
|
struct window *w;
|
||||||
struct sixel_image *si;
|
struct sixel_image *si;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (wp == NULL)
|
if (wp == NULL)
|
||||||
return (0);
|
return (0);
|
||||||
|
w = wp->window;
|
||||||
|
|
||||||
if (ictx->flags & INPUT_DISCARD) {
|
if (ictx->flags & INPUT_DISCARD) {
|
||||||
log_debug("%s: %zu bytes (discard)", __func__, len);
|
log_debug("%s: %zu bytes (discard)", __func__, len);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_SIXEL
|
#ifdef ENABLE_SIXEL
|
||||||
if (buf[0] == 'q') {
|
if (buf[0] == 'q') {
|
||||||
si = sixel_parse(buf, len, w->xpixel, w->ypixel);
|
si = sixel_parse(buf, len, w->xpixel, w->ypixel);
|
||||||
|
Reference in New Issue
Block a user