Commit 283618a4 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

When called without file arguments: Show files in $PWD

parent fc9b1deb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ git HEAD

    * Fix segfault upon unloadable images when image-related format specifiers
      (e.g. %h) are used in --title
    * Show images in current directory when invoked without file arguments

Sat, 12 Mar 2011 22:49:53 +0100  Daniel Friesel <derf@finalrewind.org>

+4 −2
Original line number Diff line number Diff line
@@ -111,8 +111,10 @@ void init_parse_options(int argc, char **argv)
		return;

	filelist_len = gib_list_length(filelist);
	if (!filelist_len)
		show_mini_usage();
	if (!filelist_len) {
		add_file_to_filelist_recursively(".", FILELIST_FIRST);
		filelist_len = gib_list_length(filelist);
	}

	check_options();