Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
591:36071a92cb76 | 592:6a91f35b354d |
---|---|
554 * "nofile" or "nowrite" buffer type. */ | 554 * "nofile" or "nowrite" buffer type. */ |
555 #ifdef FEAT_QUICKFIX | 555 #ifdef FEAT_QUICKFIX |
556 if (!bt_dontwrite(curbuf)) | 556 if (!bt_dontwrite(curbuf)) |
557 #endif | 557 #endif |
558 check_need_swap(newfile); | 558 check_need_swap(newfile); |
559 filemess(curbuf, sfname, (char_u *)_("[New File]"), 0); | 559 if (dir_of_file_exists(fname)) |
560 filemess(curbuf, sfname, (char_u *)_("[New File]"), 0); | |
561 else | |
562 filemess(curbuf, sfname, | |
563 (char_u *)_("[New DIRECTORY]"), 0); | |
560 #ifdef FEAT_VIMINFO | 564 #ifdef FEAT_VIMINFO |
561 /* Even though this is a new file, it might have been | 565 /* Even though this is a new file, it might have been |
562 * edited before and deleted. Get the old marks. */ | 566 * edited before and deleted. Get the old marks. */ |
563 check_marks_read(); | 567 check_marks_read(); |
564 #endif | 568 #endif |