Removing gross purging of sixels code ref. #30

This commit is contained in:
bakkeby 2021-07-18 18:12:47 +02:00
parent 04a194c013
commit b39782fdcf

10
st.c
View File

@ -2188,16 +2188,6 @@ csihandle(void)
tputtab(csiescseq.arg[0]); tputtab(csiescseq.arg[0]);
break; break;
case 'J': /* ED -- Clear screen */ case 'J': /* ED -- Clear screen */
#if SIXEL_PATCH
/* purge sixels */
/* TODO: kinda gross, should probably make this only purge
* visible sixels */
for (im = term.images; im; im = im->next) {
im->should_delete = 1;
}
#endif // SIXEL_PATCH
switch (csiescseq.arg[0]) { switch (csiescseq.arg[0]) {
case 0: /* below */ case 0: /* below */
tclearregion(term.c.x, term.c.y, term.col-1, term.c.y); tclearregion(term.c.x, term.c.y, term.col-1, term.c.y);