Mercurial > vim
comparison src/ex_getln.c @ 2429:7ce8b24450dc vim73
Improvements for ":find" completion. (Nazri Ramliy)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 28 Jul 2010 22:29:10 +0200 |
parents | 0ca06a92adfb |
children | 98b9a6b9e7d5 |
comparison
equal
deleted
inserted
replaced
2428:33148c37f3c9 | 2429:7ce8b24450dc |
---|---|
5031 /* Loop over all entries in {path}. */ | 5031 /* Loop over all entries in {path}. */ |
5032 while (*path != NUL) | 5032 while (*path != NUL) |
5033 { | 5033 { |
5034 /* Copy one item of the path to buf[] and concatenate the file name. */ | 5034 /* Copy one item of the path to buf[] and concatenate the file name. */ |
5035 copy_option_part(&path, buf, MAXPATHL, ","); | 5035 copy_option_part(&path, buf, MAXPATHL, ","); |
5036 if (path_with_url(buf)) | |
5037 continue; | |
5038 /* | |
5039 * FIXME: should we proactively skip 'path' with limiter (/usr/ **N) | |
5040 * and upward search (;) notations, just like we did with url above? | |
5041 */ | |
5036 if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL) | 5042 if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL) |
5037 { | 5043 { |
5038 add_pathsep(buf); | 5044 add_pathsep(buf); |
5039 STRCAT(buf, file); | 5045 STRCAT(buf, file); |
5040 if (ExpandFromContext(&xpc, buf, &num_p, &p, | 5046 if (ExpandFromContext(&xpc, buf, &num_p, &p, |