Mercurial > vim
comparison src/misc1.c @ 2481:734196b073e0 vim73
Fix crash when no item in 'path' is used for :find completion.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 04 Aug 2010 12:39:44 +0200 |
parents | 81bf2aaa979a |
children | 7ec9ada2cd81 |
comparison
equal
deleted
inserted
replaced
2480:d8d8e0306a08 | 2481:734196b073e0 |
---|---|
9591 return 0; | 9591 return 0; |
9592 mch_dirname(curdir, MAXPATHL); | 9592 mch_dirname(curdir, MAXPATHL); |
9593 | 9593 |
9594 expand_path_option(curdir, &path_ga); | 9594 expand_path_option(curdir, &path_ga); |
9595 vim_free(curdir); | 9595 vim_free(curdir); |
9596 if (path_ga.ga_len == 0) | |
9597 return 0; | |
9596 path_list = (char_u **)(path_ga.ga_data); | 9598 path_list = (char_u **)(path_ga.ga_data); |
9597 # ifdef WIN3264 | 9599 # ifdef WIN3264 |
9598 if ((file_pattern = alloc((unsigned)MAXPATHL)) == NULL) | 9600 if ((file_pattern = alloc((unsigned)MAXPATHL)) == NULL) |
9599 return 0; | 9601 return 0; |
9600 for (i = 0; i < path_ga.ga_len; i++) | 9602 for (i = 0; i < path_ga.ga_len; i++) |