mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
search file function now does file previews
This commit is contained in:
@@ -17,6 +17,7 @@ extern unsigned int file_modifiers;
|
||||
extern pthread_mutex_t mutex_selection;
|
||||
extern pthread_mutex_t mutex_rgt;
|
||||
extern pthread_mutex_t mutex_mid;
|
||||
extern pthread_cond_t cond_rgt;
|
||||
extern file *mid_content;
|
||||
extern file *lft_content;
|
||||
extern file *rgt_content;
|
||||
@@ -807,11 +808,13 @@ void search(){
|
||||
for (i = 0; i < mid_file_count; i++) {
|
||||
if (smartstrcasestr(mid_content[i].file_name, search_buffer)) {
|
||||
selected_file_current = i;
|
||||
update_selected_file();
|
||||
if (update_selected_file()) {
|
||||
pthread_cond_signal(&cond_rgt);
|
||||
}
|
||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_0);
|
||||
render_pass();
|
||||
break;
|
||||
}
|
||||
render_pass();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user