diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-12-15 11:20:35 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-12-15 11:20:35 -0500 |
commit | f5902708a6e597064482edfc076248a67882b7c5 (patch) | |
tree | 40e97ad84d157bbc670edb97c328ff988f8c8aa6 /src/commands | |
parent | 2b29f8485e95fd3cda434ed472992fff2ee8e7a0 (diff) |
folder view now always prefix file names with a space
- remove horizontal margins in folder view
- move copy/cut methods into separate functions
- change some fields to private
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/set_mode.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/set_mode.rs b/src/commands/set_mode.rs index 978bb24..a13cad6 100644 --- a/src/commands/set_mode.rs +++ b/src/commands/set_mode.rs @@ -44,7 +44,7 @@ pub fn set_mode(context: &mut JoshutoContext, backend: &mut TuiBackend) -> Joshu let user_input = match entry { Some(entry) => { - let mode = entry.metadata.permissions.mode(); + let mode = entry.metadata.permissions_ref().mode(); let mode_string = unix::stringify_mode(mode); TuiTextField::default() .prompt(":") @@ -68,7 +68,7 @@ pub fn set_mode(context: &mut JoshutoContext, backend: &mut TuiBackend) -> Joshu .unwrap(); unix::set_mode(entry.file_path(), mode); - entry.metadata.permissions.set_mode(mode); + entry.metadata.permissions_mut().set_mode(mode); cursor_move::down(context, 1)?; } } |