0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

Improvements for ":find" completion. (Nazri Ramliy)

This commit is contained in:
Bram Moolenaar
2010-07-28 22:29:10 +02:00
parent 8e46927a32
commit 162bd91564
4 changed files with 249 additions and 50 deletions

View File

@@ -5033,6 +5033,12 @@ globpath(path, file, expand_options)
{
/* Copy one item of the path to buf[] and concatenate the file name. */
copy_option_part(&path, buf, MAXPATHL, ",");
if (path_with_url(buf))
continue;
/*
* FIXME: should we proactively skip 'path' with limiter (/usr/ **N)
* and upward search (;) notations, just like we did with url above?
*/
if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL)
{
add_pathsep(buf);