HomeFreeBSD

Improve --strip-trailing-cr handling:

Description

Improve --strip-trailing-cr handling:

  • Advance ctold for f1 and ctnew for f2
  • ungetc() if the character is unexpected
  • Don't break early when we hit the combination on one side

PR: 230049
Reported by: maskray <emacsray gmail com>
Reviewed by: bapt, maskray
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D16451

Details

Provenance
delphijAuthored on
Reviewer
bapt
Differential Revision
D16451: Improve --strip-trailing-cr handling
Parents
rS336753: top(1): fixed the empty output problem in non-interactive mode (-n, -b)…
Branches
Unknown
Tags
Unknown