mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
smart case search in file search
This commit is contained in:
@@ -772,7 +772,7 @@ void search(){
|
||||
pass++;
|
||||
unsigned long i;
|
||||
for (i = 0; i < mid_file_count; i++) {
|
||||
if (strstr(mid_content[i].file_name, search_buffer)) {
|
||||
if (smartstrcasestr(mid_content[i].file_name, search_buffer)) {
|
||||
selected_file_current = i;
|
||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_0);
|
||||
update_selected_file();
|
||||
@@ -794,7 +794,7 @@ void search(){
|
||||
void search_next(){
|
||||
unsigned long i;
|
||||
for (i = selected_file_current+1; i < mid_file_count; i++) {
|
||||
if (strstr(mid_content[i].file_name, search_buffer)) {
|
||||
if (smartstrcasestr(mid_content[i].file_name, search_buffer)) {
|
||||
selected_file_current = i;
|
||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_0);
|
||||
update_selected_file();
|
||||
@@ -809,7 +809,7 @@ void search_previous(){
|
||||
if(i > selected_file_current) {
|
||||
break;
|
||||
}
|
||||
if (strstr(mid_content[i].file_name, search_buffer)) {
|
||||
if (smartstrcasestr(mid_content[i].file_name, search_buffer)) {
|
||||
selected_file_current = i;
|
||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_0);
|
||||
update_selected_file();
|
||||
|
Reference in New Issue
Block a user