Merge branch 'master' into zig-0.14

This commit is contained in:
CJ van den Berg 2025-03-06 17:14:56 +01:00
commit 1943d65924
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
9 changed files with 26 additions and 18 deletions

View file

@ -132,7 +132,7 @@ fn render_mini_mode(plane: *Plane, theme: *const Widget.Theme) void {
fn render_normal(self: *Self, plane: *Plane, theme: *const Widget.Theme) void {
plane.on_styles(styles.italic);
_ = plane.putstr(" ") catch {};
if (self.file_icon.len > 0) {
if (self.file_icon.len > 0 and tui.config().show_fileicons) {
self.render_file_icon(plane, theme);
_ = plane.print(" ", .{}) catch {};
}
@ -144,7 +144,7 @@ fn render_normal(self: *Self, plane: *Plane, theme: *const Widget.Theme) void {
fn render_detailed(self: *Self, plane: *Plane, theme: *const Widget.Theme) void {
plane.on_styles(styles.italic);
_ = plane.putstr(" ") catch {};
if (self.file_icon.len > 0) {
if (self.file_icon.len > 0 and tui.config().show_fileicons) {
self.render_file_icon(plane, theme);
_ = plane.print(" ", .{}) catch {};
}