summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorDennis Real <github@tildepipe.org>2012-02-26 19:08:22 +0100
committerDennis Real <github@tildepipe.org>2012-02-26 19:08:22 +0100
commitfc651e5eb5a7cce4f2df97eb8aee3d9ad34f9717 (patch)
treed920a9d3c789dc9856871fdc24e73990426075dd /src/list.c
parent458c5cfd464c84048c7e9027f6ef803d261742e3 (diff)
parent54deb9b8e21354a1670c179a7d8bd09e4e391026 (diff)
Merge remote branch 'upstream/master'
Conflicts: src/exif.c
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/list.c b/src/list.c
index e052c05..3317da7 100644
--- a/src/list.c
+++ b/src/list.c
@@ -37,7 +37,7 @@ void init_list_mode(void)
mode = "list";
if (!opt.customlist)
- fputs("NUM\tFORMAT\tWIDTH\tHEIGHT\tPIXELS\tSIZE(bytes)\tALPHA\tFILENAME\n",
+ fputs("NUM\tFORMAT\tWIDTH\tHEIGHT\tPIXELS\tSIZE\tALPHA\tFILENAME\n",
stdout);
for (l = filelist; l; l = l->next) {
@@ -45,10 +45,12 @@ void init_list_mode(void)
if (opt.customlist)
printf("%s\n", feh_printf(opt.customlist, file));
else
- printf("%d\t%s\t%d\t%d\t%d\t%d\t\t%c\t%s\n", ++j,
+ printf("%d\t%s\t%d\t%d\t%s", ++j,
file->info->format, file->info->width,
- file->info->height, file->info->pixels,
- file->info->size,
+ file->info->height,
+ format_size(file->info->pixels));
+ printf("\t%s\t%c\t%s\n",
+ format_size(file->info->size),
file->info->has_alpha ? 'X' : '-', file->filename);
feh_action_run(file, opt.actions[0]);