[prev in list] [next in list] [prev in thread] [next in thread]
List: vim-dev
Subject: Patch 6.1.169
From: Bram Moolenaar <Bram () moolenaar ! net>
Date: 2002-08-30 20:27:10
[Download RAW message or body]
Patch 6.1.169
Problem: bufexists() finds a buffer by using the name of a symbolic link to
it, but bufnr() doesn't. (Yegappan Lakshmanan)
Solution: When bufnr() can't find a buffer, try using the same method as
bufexists().
Files: src/eval.c
*** ../vim61.168/src/eval.c Sun Aug 4 21:51:53 2002
--- src/eval.c Thu Aug 29 21:09:09 2002
***************
*** 2944,2949 ****
--- 2944,2954 ----
p_magic = save_magic;
p_cpo = save_cpo;
+
+ /* If not found, try expanding the name, like done for bufexists(). */
+ if (buf == NULL)
+ buf = find_buffer(avar);
+
return buf;
}
*** ../vim61.168/src/version.c Fri Aug 30 22:25:09 2002
--- src/version.c Fri Aug 30 22:26:17 2002
***************
*** 608,609 ****
--- 608,611 ----
{ /* Add new patch number below this line */
+ /**/
+ 169,
/**/
--
Nothing is impossible for the man who doesn't have to do it.
/// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
/// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
\\\ Project leader for A-A-P -- http://www.a-a-p.org ///
\\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic