some minor changes to spmenu_imageviewer and remove additional line when

there's an image
This commit is contained in:
speedie 2023-05-16 22:06:24 +02:00
parent 81f73fca14
commit 3e4e36250c
2 changed files with 5 additions and 2 deletions

View file

@ -492,8 +492,9 @@ void drawmenu(void) {
drw_resize(drw, mw - 2 * sp - 2 * borderwidth, mh);
}
#if USEIMAGE
else if (hideprompt && hideinput && hidemode && hidematchcount) {
else if (hideprompt && hideinput && hidemode && hidematchcount && hidecaps) {
y -= bh;
mh = (lines + 1) * bh - bh + 2 * menumarginv;
}
#endif

View file

@ -20,7 +20,9 @@ main() {
--hide-left-arrow \
--hide-right-arrow \
--hide-prompt \
--hide-cursor \
--hide-input \
--hide-caret \
--hide-caps \
--hide-highlighting \
--image-size 200 \
--generate-cache \