57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
#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
|
|
|
|
|
|
*** ../vim-7.0.220/src/eval.c Sun Mar 25 17:50:22 2007
|
|
--- src/eval.c Sun Mar 25 17:43:53 2007
|
|
***************
|
|
*** 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;
|
|
|
|
*** ../vim-7.0.220/src/version.c Sun Mar 25 17:50:22 2007
|
|
--- src/version.c Tue Mar 27 10:16:35 2007
|
|
***************
|
|
*** 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 ///
|