diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-04 16:56:38 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-04 16:56:38 -0400 |
commit | e76b9fb310ae9f2d5c0e8be8794aab5b1d9edd42 (patch) | |
tree | adbff6e5a3ecfcb5a9e3e3c4721e917130f62a9f /src/commands | |
parent | 2e8e1ccdd52d5cdc4b461b4e576c5afc9bffd2c3 (diff) |
show how many files are selected in the footer
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/set_mode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/set_mode.rs b/src/commands/set_mode.rs index d62d8a4..82d43e4 100644 --- a/src/commands/set_mode.rs +++ b/src/commands/set_mode.rs @@ -65,7 +65,7 @@ pub fn set_mode(context: &mut AppContext, backend: &mut AppBackend) -> JoshutoRe if let Some(stripped) = s.strip_prefix(PREFIX) { let mode = str_to_mode(stripped); if let Some(curr_list) = context.tab_context_mut().curr_tab_mut().curr_list_mut() { - if curr_list.any_selected() { + if curr_list.selected_count() > 0 { for entry in curr_list.iter_selected_mut() { let mut permissions = entry.metadata.permissions_ref().clone(); let file_mode = (permissions.mode() >> 12) << 12 | mode; |