| #KH: Modified for runtime patch |
| To: vim-dev@vim.org |
| Subject: patch 7.0.221 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.0.221 |
| Problem: finddir() uses 'path' by default, where "." means relative to the |
| current file. But it works relative to the current directory. |
| (Tye Zdrojewski) |
| Solution: Add the current buffer name to find_file_in_path_option() for the |
| relative file name. |
| Files: runtime/doc/eval.txt, src/eval.c |
| |
| |
| |
| |
| |
| *** 9195,9201 **** |
| vim_free(fresult); |
| fresult = find_file_in_path_option(first ? fname : NULL, |
| first ? (int)STRLEN(fname) : 0, |
| ! 0, first, path, dir, NULL, |
| dir ? (char_u *)"" : curbuf->b_p_sua); |
| first = FALSE; |
| |
| --- 9195,9201 ---- |
| vim_free(fresult); |
| fresult = find_file_in_path_option(first ? fname : NULL, |
| first ? (int)STRLEN(fname) : 0, |
| ! 0, first, path, dir, curbuf->b_ffname, |
| dir ? (char_u *)"" : curbuf->b_p_sua); |
| first = FALSE; |
| |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 221, |
| /**/ |
| |
| -- |
| Beer & pretzels can't be served at the same time in any bar or restaurant. |
| [real standing law in North Dakota, United States of America] |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |