don't draw image if !columns

This commit is contained in:
speedie 2023-03-25 18:48:45 +01:00
parent 23955b15f4
commit 73c17f6f55
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ drawimage(void)
int width = 0, height = 0; int width = 0, height = 0;
char *limg = NULL; char *limg = NULL;
if (!lines || hideimage) return; if (!lines || !columns || hideimage) return;
// to prevent the image from being drawn multiple times // to prevent the image from being drawn multiple times
if (!needredraw) { if (!needredraw) {

View file

@ -1,4 +1,4 @@
.\" Automatically generated by Pandoc 3.0.1 .\" Automatically generated by Pandoc 3.1
.\" .\"
.\" Define V font for inline verbatim, using C font in formats .\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font. .\" that render this, and otherwise B font.
@ -14,7 +14,7 @@
. ftr VB CB . ftr VB CB
. ftr VBI CBI . ftr VBI CBI
.\} .\}
.TH "spmenu" "1" "" "0.3.1" "dynamic menu" .TH "spmenu" "1" "" "0.3.2" "dynamic menu"
.hy .hy
.SH spmenu .SH spmenu
.SH What is spmenu? .SH What is spmenu?