diff options
author | Canop <cano.petrole@gmail.com> | 2021-08-03 20:49:25 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-08-04 13:25:29 +0200 |
commit | c68e7f3bd12ad14214e074d90c1640d8b2536801 (patch) | |
tree | 797741ea2fae240960a9aa03ce3dadb79cb29856 /src/display/permissions.rs | |
parent | 3123abc98b2f2e8e52da3ecce96c690341e75c11 (diff) |
improve scrolling behaviors
Especially move the selection when you're at one end and you
try to scroll the blocked way. Fix #419
Diffstat (limited to 'src/display/permissions.rs')
-rw-r--r-- | src/display/permissions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/permissions.rs b/src/display/permissions.rs index 56b8240..b4c0ccc 100644 --- a/src/display/permissions.rs +++ b/src/display/permissions.rs @@ -113,13 +113,13 @@ impl<'s> PermWriter<'s> { let owner = permissions::user_name(line.metadata.uid()); cond_bg!(owner_style, self, selected, self.skin.owner); cw.queue_g_string( - &owner_style, + owner_style, format!(" {:w$}", &owner, w = self.max_user_len), )?; let group = permissions::group_name(line.metadata.gid()); cond_bg!(group_style, self, selected, self.skin.group); cw.queue_g_string( - &group_style, + group_style, format!(" {:w$}", &group, w = self.max_group_len), )?; 1 |