diff --git a/src/uu/ls/src/dired.rs b/src/uu/ls/src/dired.rs index f66d22b38..ba8f09335 100644 --- a/src/uu/ls/src/dired.rs +++ b/src/uu/ls/src/dired.rs @@ -54,7 +54,7 @@ pub fn indent(out: &mut BufWriter) -> UResult<()> { Ok(()) } -pub fn calculate_offset_and_push(dired: &mut DiredOutput, path_len: usize) { +pub fn calculate_subdired(dired: &mut DiredOutput, path_len: usize) { let offset = if dired.subdired_positions.is_empty() { DIRED_TRAILING_OFFSET } else { diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index 3d67cccaa..7f977da2a 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -1921,7 +1921,7 @@ pub fn list(locs: Vec<&Path>, config: &Config) -> UResult<()> { } writeln!(out, "{}:", path_data.p_buf.display())?; if config.dired { - dired::calculate_offset_and_push(&mut dired, path_data.display_name.len()); + dired::calculate_subdired(&mut dired, path_data.display_name.len()); } } else { writeln!(out, "\n{}:", path_data.p_buf.display())?;