summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-11-07 21:59:47 +0000
committerBram Moolenaar <Bram@vim.org>2006-11-07 21:59:47 +0000
commit84212825ed74d16483061f35f0e2e6a05fd33a6e (patch)
tree13a4d5a30dc51827231719bf82aa99735122c97a /src/buffer.c
parent908d53a230bd599dc541cf75cfbd33590aba1fb0 (diff)
updated for version 7.0-162v7.0.162
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index c9a91ceb35..4049f711b6 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4220,7 +4220,7 @@ alist_name(aep)
/* Use the name from the associated buffer if it exists. */
bp = buflist_findnr(aep->ae_fnum);
- if (bp == NULL)
+ if (bp == NULL || bp->b_fname == NULL)
return aep->ae_fname;
return bp->b_fname;
}