diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-12-12 21:58:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-12-12 21:58:40 +0000 |
commit | 5b962cf71c87f5d23408bac83c8a526b901daa3f (patch) | |
tree | 0105ddcc2ab582365acddeb7892516eec1bbad0b /src/fileio.c | |
parent | 63a121b750c186db52de3d3ffbe016b89df8970b (diff) |
updated for version 7.0168
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index a573a5b6fc..4c415ab442 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -556,7 +556,11 @@ readfile(fname, sfname, from, lines_to_skip, lines_to_read, eap, flags) 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. */ |