diff options
author | Bram Moolenaar <bram@vim.org> | 2010-08-16 22:34:29 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2010-08-16 22:34:29 +0200 |
commit | 0ab354b0c1aa607934fb07d608077e9f3ad6ee58 (patch) | |
tree | a62fe595729b28267573b4fffbae0dd53d133dc2 | |
parent | f886b50976a72d2208b68dbed9e9448f87cc4377 (diff) | |
download | vim-0ab354b0c1aa607934fb07d608077e9f3ad6ee58.tar.gz |
Problem: ":find" completion doesn't work when halfway an environment
variable. (Dominique Pelle)
Solution: Only use in-path completion when expanding file names. (Nazri
Ramliy)
-rw-r--r-- | src/ex_docmd.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index b338ed5f..657742e5 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3465,7 +3465,8 @@ set_one_cmd_context(xp, buff) case CMD_find: case CMD_sfind: case CMD_tabfind: - xp->xp_context = EXPAND_FILES_IN_PATH; + if (xp->xp_context == EXPAND_FILES) + xp->xp_context = EXPAND_FILES_IN_PATH; break; case CMD_cd: case CMD_chdir: diff --git a/src/version.c b/src/version.c index 76d3d9e2..34d5b49a 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2, +/**/ 1, /**/ 0 |