0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Cleanup in :find completion code. Make it work for "./subdir" in 'path'.

This commit is contained in:
Bram Moolenaar
2010-08-13 21:16:49 +02:00
parent daf3b39559
commit dc685aba75
3 changed files with 63 additions and 87 deletions

View File

@@ -4999,9 +4999,7 @@ ExpandRTDir(pat, num_file, file, dirnames)
vim_free(all);
/* Sort and remove duplicates which can happen when specifying multiple
* directories in dirnames such as "{syntax,ftplugin,indent}".
*/
sort_strings((char_u **)ga.ga_data, ga.ga_len);
* directories in dirnames such as "{syntax,ftplugin,indent}". */
remove_duplicates(&ga);
*file = ga.ga_data;