From 62515e8a1b336458d6ad2c5c20e99d9fe18c20d9 Mon Sep 17 00:00:00 2001 From: zegonix Date: Sat, 10 Oct 2026 17:25:36 +0200 Subject: [PATCH] show '-' for entries without size --- src/display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index dcb3b83..3d14701 100644 --- a/src/display.c +++ b/src/display.c @@ -329,6 +329,7 @@ void size_to_string( const char SIZE_CHARS[ 6 ] = { 'B', 'k', 'M', 'G', 'T', 'P' }; char size_quantifier = '\0'; double size_format = ( float )entry->stats.st_size; + if ( entry->stats.st_mode & S_IFREG || entry->stats.st_mode & S_IFCHR ) { @@ -368,7 +369,7 @@ void size_to_string( snprintf( &file_size[ 0 ], length, - " " + " -" ); } }