0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.0026

This commit is contained in:
Bram Moolenaar
2004-12-29 21:03:02 +00:00
parent 81695250ef
commit 8fc061c7f7
10 changed files with 91 additions and 78 deletions

View File

@@ -3427,25 +3427,12 @@ find_buffer(avar)
VAR avar;
{
buf_T *buf = NULL;
char_u *name;
if (avar->var_type == VAR_NUMBER)
buf = buflist_findnr((int)avar->var_val.var_number);
else if (avar->var_val.var_string != NULL)
{
/* First make the name into a full path name */
name = FullName_save(avar->var_val.var_string,
#ifdef UNIX
TRUE /* force expansion, get rid of symbolic links */
#else
FALSE
#endif
);
if (name != NULL)
{
buf = buflist_findname(name);
vim_free(name);
}
buf = buflist_findname_exp(avar->var_val.var_string);
if (buf == NULL)
{
/* No full path name match, try a match with a URL or a "nofile"