| 4002 | /* Cache values based on attributes global to all files. */ |
| 4003 | |
| 4004 | static void |
| 4005 | update_current_files_info (void) |
| 4006 | { |
| 4007 | /* Cache screen width of name, if needed multiple times. */ |
| 4008 | if (sort_type == sort_width |
| 4009 | || (line_length && (format == many_per_line || format == horizontal))) |
| 4010 | { |
| 4011 | for (idx_t i = 0; i < cwd_n_used; i++) |
| 4012 | { |
| 4013 | struct fileinfo *f = sorted_file[i]; |
| 4014 | f->width = fileinfo_name_width (f); |
| 4015 | } |
| 4016 | } |
| 4017 | } |
| 4018 | |
| 4019 | /* Sort the files now in the table. */ |
| 4020 |
no test coverage detected