Mercurial > vim
diff src/fileio.c @ 592:6a91f35b354d
updated for version 7.0168
author | vimboss |
---|---|
date | Mon, 12 Dec 2005 21:58:40 +0000 |
parents | bc49ed25543d |
children | fea48f63efc8 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -556,7 +556,11 @@ readfile(fname, sfname, from, lines_to_s 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. */