mirror of
https://github.com/tmux/tmux.git
synced 2026-10-15 16:04:34 +00:00
Remove some code that will not be needed.
This commit is contained in:
7
input.c
7
input.c
@@ -2632,7 +2632,7 @@ input_dcs_dispatch(struct input_ctx *ictx)
|
||||
#ifdef ENABLE_IMAGES
|
||||
struct window *w;
|
||||
struct sixel_image *si;
|
||||
int p1, p2;
|
||||
int p2;
|
||||
#endif
|
||||
|
||||
if (wp == NULL)
|
||||
@@ -2650,13 +2650,10 @@ input_dcs_dispatch(struct input_ctx *ictx)
|
||||
w = wp->window;
|
||||
if (input_split(ictx) != 0)
|
||||
return (0);
|
||||
p1 = input_get(ictx, 0, 0, 0);
|
||||
if (p1 == -1)
|
||||
p1 = 0;
|
||||
p2 = input_get(ictx, 1, 0, 0);
|
||||
if (p2 == -1)
|
||||
p2 = 0;
|
||||
si = sixel_parse(buf, len, p1, p2, w->xpixel, w->ypixel);
|
||||
si = sixel_parse(buf, len, p2, w->xpixel, w->ypixel);
|
||||
if (si != NULL)
|
||||
sixel_write(sctx, si, ictx->cell.cell.bg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user