diff options
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -1,7 +1,7 @@ /* list.c Copyright (C) 1999-2003 Tom Gilbert. -Copyright (C) 2010-2011 Daniel Friesel. +Copyright (C) 2010-2024 Birte Kristina Friesel. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to @@ -50,11 +50,11 @@ void init_list_mode(void) file->info->height, format_size(file->info->pixels)); printf("\t%s\t%c\t%s\n", - format_size(file->info->size), + format_size(file->size), file->info->has_alpha ? 'X' : '-', file->filename); } - feh_action_run(file, opt.actions[0]); + feh_action_run(file, opt.actions[0], NULL); } exit(0); } @@ -89,21 +89,35 @@ void real_loadables_mode(int loadable) if (feh_load_image(&im, file)) { /* loaded ok */ if (loadable) { + if (opt.verbose) + feh_display_status('.'); puts(file->filename); - feh_action_run(file, opt.actions[0]); + fflush(stdout); + feh_action_run(file, opt.actions[0], NULL); } - else + else { + if (opt.verbose) + feh_display_status('s'); ret = 1; + } gib_imlib_free_image_and_decache(im); } else { /* Oh dear. */ if (!loadable) { + if (opt.verbose) + feh_display_status('.'); puts(file->filename); - feh_action_run(file, opt.actions[0]); + fflush(stdout); + feh_action_run(file, opt.actions[0], NULL); } - else + else { + if (opt.verbose) + feh_display_status('s'); ret = 1; + } } } + if (opt.verbose) + feh_display_status(0); exit(ret); } |