sixel: only clear sixel images on RM (Reset Mode) if we are in alt screen ref. #102
This commit is contained in:
parent
c1ef3ce0d8
commit
1c03f10db9
6
st.c
6
st.c
@ -2342,8 +2342,10 @@ csihandle(void)
|
||||
case 'l': /* RM -- Reset Mode */
|
||||
tsetmode(csiescseq.priv, 0, csiescseq.arg, csiescseq.narg);
|
||||
#if SIXEL_PATCH
|
||||
for (im = term.images; im; im = im->next)
|
||||
im->should_delete = 1;
|
||||
if (IS_SET(MODE_ALTSCREEN)) {
|
||||
for (im = term.images; im; im = im->next)
|
||||
im->should_delete = 1;
|
||||
}
|
||||
#endif // SIXEL_PATCH
|
||||
break;
|
||||
case 'M': /* DL -- Delete <n> lines */
|
||||
|
Loading…
Reference in New Issue
Block a user