st-flexipatch

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

commit a414f4a7079fc96d266d18b5622585d1dedf0c16
parent 8aee31444abb1a8af50c54c802ff0af0054388b7
Author: veltza <106755522+veltza@users.noreply.github.com>
Date:   Thu, 13 Jun 2024 20:22:01 +0300

sixel: prevent drawing on search bar (#140)

It's annoying to use the search bar when it's behind an image. So this
fix prevents that from happening.
Diffstat:
Mx.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/x.c b/x.c @@ -3178,6 +3178,12 @@ xfinishdraw(void) if (im->x >= term.col || im->y >= term.row || im->y < 0) continue; + #if KEYBOARDSELECT_PATCH && REFLOW_PATCH + /* do not draw the image on the search bar */ + if (im->y == term.row-1 && IS_SET(MODE_KBDSELECT) && kbds_issearchmode()) + continue; + #endif // KEYBOARDSELECT_PATCH + /* scale the image */ width = MAX(im->width * win.cw / im->cw, 1); height = MAX(im->height * win.ch / im->ch, 1);