summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/imlib.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cf4027d..f722a04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
git HEAD
* The --bg-options now accept multiple filenames, one per Xinerama screen
+ * Fix --info bug when the command wrote no lines to stdout
Mon, 26 Sep 2011 09:35:41 +0200 Daniel Friesel <derf@finalrewind.org>
diff --git a/src/imlib.c b/src/imlib.c
index 28ae018..fc7fb16 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -543,6 +543,9 @@ void feh_draw_info(winwidget w)
pclose(info_pipe);
}
+ if (no_lines == 0)
+ return;
+
height *= no_lines;
width += 4;