-//printf("BC_TextBox::calculate_suggestions %d %d\n", __LINE__, fs.total_files());
-
-
-// Accept only entries with matching trailing characters
- ptr = strrchr((char*)current_text, '/');
- if(!ptr) ptr = strrchr((char*)current_text, '~');
- if(ptr) ptr++;
-//printf("BC_TextBox::calculate_suggestions %d %s %p\n", __LINE__, current_text, ptr);
-
-
- if(ptr && *ptr)
- {
- for(int i = 0; i < fs.total_files(); i++)
- {
- char *current_name = fs.get_entry(i)->name;
- if(!strncmp(ptr, current_name, strlen(ptr)))
- {
- suggestions.append(current_name);
- //printf("BC_TextBox::calculate_suggestions %d %s\n", __LINE__, current_name);
- }
- }
- }
- else
- // Accept all entries
- for(int i = 0; i < fs.total_files(); i++)
- {
- //printf("BC_TextBox::calculate_suggestions %d %s\n", __LINE__, fs.get_entry(i)->name);
- suggestions.append(fs.get_entry(i)->name);
- }
-//printf("BC_TextBox::calculate_suggestions %d\n", __LINE__);
-
-// Add 1 to column to keep /
- set_suggestions(&suggestions, suggestion_column);
-//printf("BC_TextBox::calculate_suggestions %d\n", __LINE__);