[eza] fix eza patches

master
Jacopo De Simoi 7 months ago
parent 8e8f4a0080
commit 4a7f205fcd
  1. 62
      sys-apps/eza/0001-Use-instead-of-as-a-filler-for-permissions.patch

@ -1,4 +1,4 @@
From 697c33f28740341031e8a3da9ed5103a2942d895 Mon Sep 17 00:00:00 2001
From ba5638ec9b912f83a5c3c42e1eb33c632488e475 Mon Sep 17 00:00:00 2001
From: Jacopo De Simoi <wilderjds@protonmail.com>
Date: Fri, 1 Aug 2025 12:46:53 +0200
Subject: [PATCH] =?UTF-8?q?Use=20=C2=B7=20instead=20of=20-=20as=20a=20fill?=
@ -8,11 +8,11 @@ Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/output/render/permissions.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
src/output/render/permissions.rs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/output/render/permissions.rs b/src/output/render/permissions.rs
index 0b48057d..d503b3f6 100644
index 0b48057d..44743ee7 100644
--- a/src/output/render/permissions.rs
+++ b/src/output/render/permissions.rs
@@ -36,7 +36,7 @@ impl PermissionsPlusRender for Option<f::PermissionsPlus> {
@ -24,6 +24,60 @@ index 0b48057d..d503b3f6 100644
TextCell {
width: DisplayWidth::from(chars.len()),
contents: chars.into(),
@@ -77,7 +77,7 @@ impl RenderPermissions for Option<f::Permissions> {
if bit {
style.paint(chr)
} else {
- colours.dash().paint("-")
+ colours.dash().paint("·")
}
};
@@ -93,7 +93,7 @@ impl RenderPermissions for Option<f::Permissions> {
p.other_execute_bit(colours),
]
}
- None => iter::repeat_n(colours.dash().paint("-"), 9).collect(),
+ None => iter::repeat_n(colours.dash().paint("·"), 9).collect(),
}
}
}
@@ -106,7 +106,7 @@ impl f::Permissions {
) -> ANSIString<'static> {
#[rustfmt::skip]
return match (self.user_execute, self.setuid, is_regular_file) {
- (false, false, _) => colours.dash().paint("-"),
+ (false, false, _) => colours.dash().paint("·"),
(true, false, false) => colours.user_execute_other().paint("x"),
(true, false, true) => colours.user_execute_file().paint("x"),
(false, true, _) => colours.special_other().paint("S"),
@@ -118,7 +118,7 @@ impl f::Permissions {
fn group_execute_bit<C: Colours>(&self, colours: &C) -> ANSIString<'static> {
#[rustfmt::skip]
return match (self.group_execute, self.setgid) {
- (false, false) => colours.dash().paint("-"),
+ (false, false) => colours.dash().paint("·"),
(true, false) => colours.group_execute().paint("x"),
(false, true) => colours.special_other().paint("S"),
(true, true) => colours.special_other().paint("s"),
@@ -128,7 +128,7 @@ impl f::Permissions {
fn other_execute_bit<C: Colours>(&self, colours: &C) -> ANSIString<'static> {
#[rustfmt::skip]
return match (self.other_execute, self.sticky) {
- (false, false) => colours.dash().paint("-"),
+ (false, false) => colours.dash().paint("·"),
(true, false) => colours.other_execute().paint("x"),
(false, true) => colours.special_other().paint("T"),
(true, true) => colours.special_other().paint("t"),
@@ -143,7 +143,7 @@ impl f::Attributes {
if bit {
style.paint(chr)
} else {
- colours.dash().paint("-")
+ colours.dash().paint("·")
}
};
--
2.51.0

Loading…
Cancel
Save