Ben Schmidt wrote:

> >> start cmd. Execute "gvim -U NONE -u NONE test.c". Notice that test.c
> >> must not exist.
> >>
> >> :set ff=unix
> >> :w
> >> :echo&modified
> >>
> >> Then it shows "1". But if I don't execute ":set ff=unix", then ":echo
> >> &modified" shows 0. Is it supposed to be like this?
> >
> > That is weird.  On Unix it happens with ":set ff=dos".
> 
> Bram, the problem is that save_file_ff() at misc1.c:3073 isn't called.
> It's not called because file_ff_differs() at option.c:11496 returns
> false for an empty buffer. So an unchanged empty buffer will not have
> save_file_ff() called, but should. One possible fix is below.

Thanks, I'll look into the details.

-- 
Why is it called "Windows"?  "Gates" would be more appropriate...

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to