Mercurial > vim
diff src/structs.h @ 2707:cd3f52531f6c v7.3.124
updated for version 7.3.124
Problem: When writing a file in binary mode it may be missing the final EOL
if a file previously read was missing the EOL. (Kevin Goodsell)
Solution: Move the write_no_eol_lnum into the buffer struct.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 15 Feb 2011 17:39:22 +0100 |
parents | 6c05b5e5c1be |
children | e0a90042318d |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1564,6 +1564,9 @@ struct file_buffer /* end of buffer options */ + linenr_T b_no_eol_lnum; /* non-zero lnum when last line of next binary + * write should not have an end-of-line */ + int b_start_eol; /* last line had eol when it was read */ int b_start_ffc; /* first char of 'ff' when edit started */ #ifdef FEAT_MBYTE