Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/filesel.c
| Context not available. | |||||
| if (!match) { | if (!match) { | ||||
| BLI_strncpy(matched_file, file->relname, FILE_MAX); | BLI_strncpy(matched_file, file->relname, FILE_MAX); | ||||
| } | } | ||||
| match = 1; | match++; | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| for (i = 0; i < nentries; ++i) { | for (i = 0; i < nentries; ++i) { | ||||
| struct direntry *file = filelist_file(sfile->files, i); | struct direntry *file = filelist_file(sfile->files, i); | ||||
| if (file && S_ISREG(file->type)) { | if (file && (S_ISREG(file->type) || S_ISDIR(file->type))) { | ||||
| autocomplete_do_name(autocpl, file->relname); | autocomplete_do_name(autocpl, file->relname); | ||||
| } | } | ||||
| } | } | ||||
| match = autocomplete_end(autocpl, str); | match = autocomplete_end(autocpl, str); | ||||
| } | } | ||||
| return match != AUTOCOMPLETE_NO_MATCH; | return match == AUTOCOMPLETE_FULL_MATCH; | ||||
| } | } | ||||
| void ED_fileselect_clear(struct wmWindowManager *wm, struct SpaceFile *sfile) | void ED_fileselect_clear(struct wmWindowManager *wm, struct SpaceFile *sfile) | ||||
| Context not available. | |||||