sixel: moving osc_table out of sixel patch due to global dependency ref. #118

This commit is contained in:
Bakkeby 2024-03-08 19:52:00 +01:00
parent 9ddc13c0e0
commit cd37481bde

10
st.c
View File

@ -2397,16 +2397,16 @@ strhandle(void)
{
char *p = NULL, *dec;
int j, narg, par;
#if SIXEL_PATCH
ImageList *im, *newimages, *next, *tail;
int i, x, y, x1, y1, x2, y2, numimages;
int cx, cy;
Line line;
const struct { int idx; char *str; } osc_table[] = {
{ defaultfg, "foreground" },
{ defaultbg, "background" },
{ defaultcs, "cursor" }
};
#if SIXEL_PATCH
ImageList *im, *newimages, *next, *tail;
int i, x, y, x1, y1, x2, y2, numimages;
int cx, cy;
Line line;
#if SCROLLBACK_PATCH
int scr = IS_SET(MODE_ALTSCREEN) ? 0 : term.scr;
#else