Loading ChangeLog +2 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ git HEAD (patch by James Knight) * when removing the last image in slidsehow mode, stay on the last (previously second-to-last) image (patch by Lior Shiponi) * Allow --sort and --randomize to override each other (most recently specified option wins) instead of always preferring --sort Sun, 24 May 2015 11:45:18 +0200 Loading src/options.c +10 −6 Original line number Diff line number Diff line Loading @@ -530,6 +530,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) "sort by filename", optarg); opt.sort = SORT_FILENAME; } if (opt.randomize) { weprintf("commandline contains --randomize and --sort. " "--randomize has been unset"); opt.randomize = 0; } break; case 'T': theme = estrdup(optarg); Loading Loading @@ -644,6 +649,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) break; case 'z': opt.randomize = 1; if (opt.sort != SORT_NONE) { weprintf("commandline contains --sort and --randomize. " "--sort has been unset"); opt.sort = SORT_NONE; } break; case '|': opt.start_list_at = estrdup(optarg); Loading Loading @@ -796,12 +806,6 @@ static void check_options(void) eprintf("You cannot combine --list with other modes"); } if (opt.sort && opt.randomize) { weprintf("You cant sort AND randomize the filelist...\n" "randomize mode has been unset\n"); opt.randomize = 0; } if (opt.loadables && opt.unloadables) { eprintf("You cannot combine --loadable with --unloadable"); } Loading Loading
ChangeLog +2 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ git HEAD (patch by James Knight) * when removing the last image in slidsehow mode, stay on the last (previously second-to-last) image (patch by Lior Shiponi) * Allow --sort and --randomize to override each other (most recently specified option wins) instead of always preferring --sort Sun, 24 May 2015 11:45:18 +0200 Loading
src/options.c +10 −6 Original line number Diff line number Diff line Loading @@ -530,6 +530,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) "sort by filename", optarg); opt.sort = SORT_FILENAME; } if (opt.randomize) { weprintf("commandline contains --randomize and --sort. " "--randomize has been unset"); opt.randomize = 0; } break; case 'T': theme = estrdup(optarg); Loading Loading @@ -644,6 +649,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) break; case 'z': opt.randomize = 1; if (opt.sort != SORT_NONE) { weprintf("commandline contains --sort and --randomize. " "--sort has been unset"); opt.sort = SORT_NONE; } break; case '|': opt.start_list_at = estrdup(optarg); Loading Loading @@ -796,12 +806,6 @@ static void check_options(void) eprintf("You cannot combine --list with other modes"); } if (opt.sort && opt.randomize) { weprintf("You cant sort AND randomize the filelist...\n" "randomize mode has been unset\n"); opt.randomize = 0; } if (opt.loadables && opt.unloadables) { eprintf("You cannot combine --loadable with --unloadable"); } Loading