summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-10-02 20:16:42 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-10-02 20:16:42 +0200
commitcd5d2af0ad35ad5e6a8089733c031953b0c6ba42 (patch)
treed3a7f0c9a3883638d64d3ffbb0e5ded11c8a87a8 /src/imlib.c
parentb12763e7d576eda6e570d1726cb426b80f8d0f30 (diff)
--draw-filename: Always show filelist position
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/imlib.c b/src/imlib.c
index afa9693..bff0428 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -603,9 +603,8 @@ void feh_draw_filename(winwidget w)
IMLIB_TEXT_TO_RIGHT, 0, 0, 0, 255);
gib_imlib_text_draw(im, fn, NULL, 1, 1, FEH_FILE(w->file->data)->filename,
IMLIB_TEXT_TO_RIGHT, 255, 255, 255, 255);
- /* Print the position in the filelist, if we are in fullscreen and the
- * list has more than one element */
- if (w->full_screen && (gib_list_length(filelist) - 1)) {
+ /* Print the position in the filelist, if we have >=2 files */
+ if (gib_list_length(filelist) > 1) {
/* sic! */
len = snprintf(NULL, 0, "%d of %d", gib_list_length(filelist), gib_list_length(filelist)) + 1;
s = emalloc(len);