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