updated for version 7.0168
diff --git a/src/fileio.c b/src/fileio.c
index a573a5b..4c415ab 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -556,7 +556,11 @@
if (!bt_dontwrite(curbuf))
#endif
check_need_swap(newfile);
- filemess(curbuf, sfname, (char_u *)_("[New File]"), 0);
+ if (dir_of_file_exists(fname))
+ filemess(curbuf, sfname, (char_u *)_("[New File]"), 0);
+ else
+ filemess(curbuf, sfname,
+ (char_u *)_("[New DIRECTORY]"), 0);
#ifdef FEAT_VIMINFO
/* Even though this is a new file, it might have been
* edited before and deleted. Get the old marks. */