diff --git a/src/menu.c b/src/menu.c index a3566ebda30ace51b7295371c9ef44070df26022..ae281381c45fc76f9b4282ddc30f0ce1c758dd21 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1379,25 +1379,25 @@ void feh_menu_cb(feh_menu * m, feh_menu_item * i, int action, void *data) break; case CB_SORT_FILENAME: filelist = gib_list_sort(filelist, feh_cmp_filename); - if (!opt.no_jump_on_resort) { + if (opt.jump_on_resort) { slideshow_change_image(m->fehwin, SLIDE_FIRST); } break; case CB_SORT_IMAGENAME: filelist = gib_list_sort(filelist, feh_cmp_name); - if (!opt.no_jump_on_resort) { + if (opt.jump_on_resort) { slideshow_change_image(m->fehwin, SLIDE_FIRST); } break; case CB_SORT_FILESIZE: filelist = gib_list_sort(filelist, feh_cmp_size); - if (!opt.no_jump_on_resort) { + if (opt.jump_on_resort) { slideshow_change_image(m->fehwin, SLIDE_FIRST); } break; case CB_SORT_RANDOMIZE: filelist = gib_list_randomize(filelist); - if (!opt.no_jump_on_resort) { + if (opt.jump_on_resort) { slideshow_change_image(m->fehwin, SLIDE_FIRST); } break; diff --git a/src/options.c b/src/options.c index d9ee51f56399c32a406915ea448e5d883bb0a699..0c14a364276c4bf688c77c0dc2502c3ed3be11f3 100644 --- a/src/options.c +++ b/src/options.c @@ -74,7 +74,7 @@ void init_parse_options(int argc, char **argv) opt.no_blur_ctrl_mask = 0; opt.start_list_at = NULL; - opt.no_jump_on_resort = 0; + opt.jump_on_resort = 1; opt.builtin_http = 0; @@ -722,7 +722,7 @@ static void feh_parse_option_array(int argc, char **argv) opt.actions[9] = estrdup(optarg); break; case 220: - opt.no_jump_on_resort = 1; + opt.jump_on_resort = 0; break; case 221: opt.hide_pointer = 1; diff --git a/src/options.h b/src/options.h index 59dc70861f9ceb24a0eda6726c1f61ca4580b1fc..3aa6dc12200ccffe1729aea46c8a566457837bfe 100644 --- a/src/options.h +++ b/src/options.h @@ -48,7 +48,7 @@ struct __fehoptions { unsigned char keep_http; unsigned char borderless; unsigned char randomize; - unsigned char no_jump_on_resort; + unsigned char jump_on_resort; unsigned char full_screen; unsigned char auto_zoom; unsigned char draw_filename;