| 145 | } |
| 146 | |
| 147 | void set_current_file_index(struct file_struct *file, int ndx) |
| 148 | { |
| 149 | if (!file) |
| 150 | current_file_index = cur_flist->used + cur_flist->ndx_start - 1; |
| 151 | else if (need_unsorted_flist) |
| 152 | current_file_index = flist_find(cur_flist, file) + cur_flist->ndx_start; |
| 153 | else |
| 154 | current_file_index = ndx; |
| 155 | current_file_index -= cur_flist->flist_num; |
| 156 | } |
| 157 | |
| 158 | void instant_progress(const char *fname) |
| 159 | { |
no test coverage detected