1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-12 16:23:57 +00:00

(C_entries): Ignore carriage return at end of line.

This commit is contained in:
Richard M. Stallman 1995-01-06 22:30:26 +00:00
parent 2fe99fe682
commit dc26fc9f0f

View File

@ -1973,6 +1973,9 @@ C_entries (c_ext, inf)
c = *lp++;
if (c == '\\')
{
/* deal with \r (13) at end of msdos lines */
if ((*lp =='\r')&&(*(lp+1)=='\0'))
*lp = '\0';
/* If we're at the end of the line, the next character is a
'\0'; don't skip it, because it's the thing that tells us
to read the next line. */