Files
coreutils/util
mattsu eea061db56 ls:fix ls dired reports (#10527)
* refactor: simplify DisplayItemName struct and improve dired position handling

This commit refactors the `display_item_name` function to return a `DisplayItemName` struct containing both the displayed name and its dired length, rather than just the OsString. This change simplifies the code by:

1. Eliminating the need to call `dired_name_len()` separately after getting the displayed name
2. Reducing redundant length calculations in the dired position handling
3. Making the code more maintainable by encapsulating related data together

The change also fixes an issue where dired positions were being calculated incorrectly for symlink names that required quoting, ensuring proper highlighting in dired mode.

Closes: #10248
2026-02-14 10:50:11 +01:00
..
2026-02-14 10:50:11 +01:00
2025-03-18 20:52:46 +01:00
2025-03-18 20:52:46 +01:00
2025-10-25 10:26:19 +02:00
2026-01-31 14:37:33 +01:00
2026-01-17 23:28:04 +01:00