Mercurial > vim
comparison src/misc1.c @ 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 | 1ead15c2ffd0 |
children | 073ff46fe397 |
comparison
equal
deleted
inserted
replaced
2573:2a2ad267db08 | 2574:f0915ae869cf |
---|---|
9315 other_path_len = (int)STRLEN(other_paths[j]); | 9315 other_path_len = (int)STRLEN(other_paths[j]); |
9316 if (other_path_len < candidate_len) | 9316 if (other_path_len < candidate_len) |
9317 continue; /* it's different when it's shorter */ | 9317 continue; /* it's different when it's shorter */ |
9318 | 9318 |
9319 rival = other_paths[j] + other_path_len - candidate_len; | 9319 rival = other_paths[j] + other_path_len - candidate_len; |
9320 if (fnamecmp(maybe_unique, rival) == 0) | 9320 if (fnamecmp(maybe_unique, rival) == 0 |
9321 && (rival == other_paths[j] || vim_ispathsep(*(rival - 1)))) | |
9321 return FALSE; /* match */ | 9322 return FALSE; /* match */ |
9322 } | 9323 } |
9323 | 9324 |
9324 return TRUE; /* no match found */ | 9325 return TRUE; /* no match found */ |
9325 } | 9326 } |