diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-14 16:52:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-14 16:52:17 +0200 |
commit | cc448b373d580856f92ff7a9e04daf65444b5cd1 (patch) | |
tree | 3cb827a7aa56a93acea0a1201d5754ebcca9b808 /src/ex_getln.c | |
parent | d43848c0dd0603248405bb93364866cd495f0547 (diff) | |
download | vim-git-cc448b373d580856f92ff7a9e04daf65444b5cd1.tar.gz |
Support completion for ":find". (Nazri Ramliy)
Cleanup white space.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index b2e89e192..153271b5c 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4099,6 +4099,7 @@ addstar(fname, len, context) int ends_in_star; if (context != EXPAND_FILES + && context != EXPAND_FILES_IN_PATH && context != EXPAND_SHELLCMD && context != EXPAND_DIRECTORIES) { @@ -4423,7 +4424,9 @@ ExpandFromContext(xp, pat, num_file, file, options) if (options & WILD_SILENT) flags |= EW_SILENT; - if (xp->xp_context == EXPAND_FILES || xp->xp_context == EXPAND_DIRECTORIES) + if (xp->xp_context == EXPAND_FILES + || xp->xp_context == EXPAND_DIRECTORIES + || xp->xp_context == EXPAND_FILES_IN_PATH) { /* * Expand file or directory names. @@ -4453,6 +4456,8 @@ ExpandFromContext(xp, pat, num_file, file, options) if (xp->xp_context == EXPAND_FILES) flags |= EW_FILE; + else if (xp->xp_context == EXPAND_FILES_IN_PATH) + flags |= (EW_FILE | EW_PATH); else flags = (flags | EW_DIR) & ~EW_FILE; /* Expand wildcards, supporting %:h and the like. */ |