Commit a7e326a5 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

feh_draw_filename: Set correct list number in multiwindow mode (closes #237)

parent facde95b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -601,6 +601,10 @@ void feh_draw_filename(winwidget w)
		len = snprintf(NULL, 0, "%d of %d",  gib_list_length(filelist),
				gib_list_length(filelist)) + 1;
		s = emalloc(len);
		if (w->file)
			snprintf(s, len, "%d of %d", gib_list_num(filelist, w->file) +
					1, gib_list_length(filelist));
		else
			snprintf(s, len, "%d of %d", gib_list_num(filelist, current_file) +
					1, gib_list_length(filelist));