summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2022-04-09 17:34:43 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2022-04-09 17:34:43 -0400
commit84f9df66c391a0c0236dc5d052b27060c4b08c76 (patch)
tree3f0cd383de7c0e1663ba4dbe80867308e899917a /src/commands
parent3ffd6e6501dd02ca991d16f1e2a140fa4d9d7118 (diff)
selected files now indented like ranger
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/file_ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/file_ops.rs b/src/commands/file_ops.rs
index 7d83209..75a12a9 100644
--- a/src/commands/file_ops.rs
+++ b/src/commands/file_ops.rs
@@ -68,7 +68,7 @@ pub fn copy_filename_without_extension(context: &mut AppContext) -> JoshutoResul
.curr_tab_ref()
.curr_list_ref()
.and_then(|c| c.curr_entry_ref())
- .map(|entry| match entry.file_name().rsplit_once(".") {
+ .map(|entry| match entry.file_name().rsplit_once('.') {
Some((name, _)) => name.to_string(),
_ => entry.file_name().to_string(),
});