mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(getline): Don't miss CRLF pairs when the CR and LF are
read in separate blocks.
This commit is contained in:
parent
05c16cf82c
commit
a8f44d07f9
1 changed files with 3 additions and 1 deletions
|
|
@ -1316,7 +1316,9 @@ getline (server)
|
|||
fprintf (stderr, "<<< %s\n", server->buffer);
|
||||
return (server->buffer);
|
||||
}
|
||||
search_offset += ret;
|
||||
/* As above, the "- 1" here is to account for the fact that
|
||||
we may have read a CR without its accompanying LF. */
|
||||
search_offset += ret - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue