1
0
forked from aniani/vim

updated for version 7.1-033

This commit is contained in:
Bram Moolenaar
2007-07-24 07:51:18 +00:00
parent 5f2c5dbd86
commit 9cffde9627
2 changed files with 5 additions and 0 deletions

View File

@@ -10624,6 +10624,9 @@ save_file_ff(buf)
file_ff_differs(buf)
buf_T *buf;
{
/* In a buffer that was never loaded the options are not valid. */
if (buf->b_flags & BF_NEVERLOADED)
return FALSE;
if ((buf->b_flags & BF_NEW)
&& buf->b_ml.ml_line_count == 1
&& *ml_get_buf(buf, (linenr_T)1, FALSE) == NUL)