Mercurial > vim
changeset 2574:f0915ae869cf v7.3.001
updated for version 7.3.002
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 16 Aug 2010 21:53:27 +0200 |
parents | 2a2ad267db08 |
children | fde086181841 |
files | src/misc1.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -9317,7 +9317,8 @@ is_unique(maybe_unique, gap, i) continue; /* it's different when it's shorter */ rival = other_paths[j] + other_path_len - candidate_len; - if (fnamecmp(maybe_unique, rival) == 0) + if (fnamecmp(maybe_unique, rival) == 0 + && (rival == other_paths[j] || vim_ispathsep(*(rival - 1)))) return FALSE; /* match */ }