diff src/buffer.c @ 1036:20308f30826d v7.0.162

updated for version 7.0-162
author vimboss
date Tue, 07 Nov 2006 21:59:47 +0000
parents be9fbf8b0cdb
children 7f01e52cc97a
line wrap: on
line diff
--- 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;
 }