mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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)
This commit is contained in:
@@ -3802,7 +3802,7 @@ get_buf_size(buf_T *bufp)
|
||||
}
|
||||
}
|
||||
/* Correction for when last line doesn't have an EOL. */
|
||||
if (!bufp->b_p_eol && bufp->b_p_bin)
|
||||
if (!bufp->b_p_eol && (bufp->b_p_bin || !bufp->b_p_fixeol))
|
||||
char_count -= eol_size;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user