projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* ld-cris/libdso-2.d: Adjust for recent hash-related changes.
[deliverable/binutils-gdb.git]
/
readline
/
histfile.c
diff --git
a/readline/histfile.c
b/readline/histfile.c
index 717bbee6fd73ed22f95c44906df70bf4872c954a..d1e54cc4c623b4aff183cdd9083a72c87b77ccf0 100644
(file)
--- a/
readline/histfile.c
+++ b/
readline/histfile.c
@@
-256,7
+256,10
@@
read_history_range (filename, from, to)
for (line_end = line_start; line_end < bufend; line_end++)
if (*line_end == '\n')
{
- *line_end = '\0';
+ if (line_end - 1 >= line_start && *(line_end - 1) == '\r')
+ *(line_end - 1) = '\0';
+ else
+ *line_end = '\0';
if (*line_start)
{
This page took
0.022636 seconds
and
4
git commands to generate.