Mercurial > vim
diff src/os_win32.c @ 6933:62ba356c2d4e v7.4.785
patch 7.4.785
Problem: On some systems automatically adding the missing EOL causes
problems. Setting 'binary' has too many side effects.
Solution: Add the 'fixeol' option, default on. (Pavel Samarkin)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 17 Jul 2015 14:18:08 +0200 |
parents | 43a07fa78155 |
children | f77d1f32c357 |
line wrap: on
line diff
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -4173,7 +4173,8 @@ sub_process_writer(LPVOID param) /* Finished a line, add a NL, unless this line should not have * one. */ if (lnum != curbuf->b_op_end.lnum - || !curbuf->b_p_bin + || (!curbuf->b_p_bin + && curbuf->b_p_fixeol) || (lnum != curbuf->b_no_eol_lnum && (lnum != curbuf->b_ml.ml_line_count || curbuf->b_p_eol)))