searching now starts at index 0, rather than current_file
This commit is contained in:
+1
-1
@@ -630,7 +630,7 @@ void search(){
|
|||||||
search_buffer[pass] = ch;
|
search_buffer[pass] = ch;
|
||||||
pass++;
|
pass++;
|
||||||
|
|
||||||
unsigned long index = (mid_dir.current_file - mid_dir.file_list);
|
unsigned long index = 0;
|
||||||
for (; &mid_dir.file_list[index] < mid_dir.file_list + mid_dir.file_count; index++) {
|
for (; &mid_dir.file_list[index] < mid_dir.file_list + mid_dir.file_count; index++) {
|
||||||
if (smartstrcasestr(mid_dir.file_list[index].file_name, search_buffer)) {
|
if (smartstrcasestr(mid_dir.file_list[index].file_name, search_buffer)) {
|
||||||
mid_dir.current_file = &mid_dir.file_list[index];
|
mid_dir.current_file = &mid_dir.file_list[index];
|
||||||
|
|||||||
Reference in New Issue
Block a user