st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit 41e6f9dce6afcac2276a6eddaba0133b0af803ac
parent f097dbd0798d36f817b29f9881e1989f8864843d
Author: Bakkeby <bakkeby@gmail.com>
Date:   Tue, 12 Sep 2023 00:16:10 +0200

sixel: remove images on escape code 'l' - Reset Mode (RM) ref. #102

Diffstat:
Mst.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/st.c b/st.c @@ -2341,6 +2341,10 @@ csihandle(void) break; 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; + #endif // SIXEL_PATCH break; case 'M': /* DL -- Delete <n> lines */ DEFAULT(csiescseq.arg[0], 1); @@ -2558,6 +2562,8 @@ strhandle(void) } } return; + case 8: /* Clear Hyperlinks */ + return; case 10: if (narg < 2) break;