From 82fe03822215345f61c9f60eadce1676d29c7fa7 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 18 Jul 2025 09:44:12 -0500 Subject: [PATCH] fmt: user symlink_dir in short mode too --- src/main.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.zig b/src/main.zig index b35cabe..d71cc11 100644 --- a/src/main.zig +++ b/src/main.zig @@ -397,7 +397,7 @@ fn printShortEntry(entry: Entry, cmd: Command, writer: anytype) !void { const opts = cmd.opts; const colors = opts.colors; if (opts.useIcons()) { - const icon = Icon.get(entry, opts); + const icon = Icon.get(entry); if (opts.useColor()) { try writer.writeAll(icon.color); @@ -538,7 +538,7 @@ fn printLong(cmd: Command, writer: anytype) !void { } if (cmd.opts.useIcons()) { - const icon = Icon.get(entry, cmd.opts); + const icon = Icon.get(entry); if (cmd.opts.useColor()) { try writer.writeAll(icon.color); @@ -1128,7 +1128,7 @@ const Icon = struct { .{ "zon", Icon.zig }, }); - fn get(entry: Entry, opts: Options) Icon { + fn get(entry: Entry) Icon { // 1. By name // 2. By type // 3. By extension @@ -1152,7 +1152,7 @@ const Icon = struct { }, .named_pipe => return pipe, .sym_link => { - if (opts.long and posix.S.ISDIR(entry.statx.mode)) { + if (posix.S.ISDIR(entry.statx.mode)) { return symlink_dir; } return symlink; -- 2.51.2