Mercurial > vim
comparison src/misc1.c @ 2495:a847363bf06e vim73
Fix a few problems for :find completion. Test much more. (Nazri Ramliy)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 05 Aug 2010 21:40:16 +0200 |
parents | 7ec9ada2cd81 |
children | 6768ebd0bc04 |
comparison
equal
deleted
inserted
replaced
2494:ed997d0ceb26 | 2495:a847363bf06e |
---|---|
9335 STRCPY(buf, curbuf->b_ffname); | 9335 STRCPY(buf, curbuf->b_ffname); |
9336 *gettail(buf) = NUL; | 9336 *gettail(buf) = NUL; |
9337 } | 9337 } |
9338 else if (buf[0] == NUL) /* relative to current directory */ | 9338 else if (buf[0] == NUL) /* relative to current directory */ |
9339 STRCPY(buf, curdir); | 9339 STRCPY(buf, curdir); |
9340 else if (path_with_url(buf)) | |
9341 continue; | |
9340 else if (!mch_isFullName(buf)) | 9342 else if (!mch_isFullName(buf)) |
9341 { | 9343 { |
9342 /* Expand relative path to their full path equivalent */ | 9344 /* Expand relative path to their full path equivalent */ |
9343 int curdir_len = (int)STRLEN(curdir); | 9345 int curdir_len = (int)STRLEN(curdir); |
9344 int buf_len = (int)STRLEN(buf); | 9346 int buf_len = (int)STRLEN(buf); |