summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/ed.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use getline(3) to handle lines longer than 8192 bytes in patch filesjca2019-12-021-3/+3
| | | | | Spotted by jsg@ when working on mesa. Diff tested by sthen@ in a partial i386 bulk. Input from and ok jsg@ millert@
* Fix 'c'hange command handling if last line of a file is removed.tobias2016-09-021-2/+3
| | | | | | | If the last line of a file is removed, the line cache is erroneously considered empty, which means that changed lines are added at the top. spotted by and okay otto@
* Properly handle ed-files which fully replace input file content. Thistobias2016-02-221-18/+11
| | | | | | | | misbehaviour is triggered with 'c' and 'i' commands on empty buffers. Spotted and fixed by Martin Natano <natano at natano dot net>. ok millert@
* Add native support for ed-style diffs. No need to pledge "proc exec" anymore.tobias2015-10-161-0/+342
ok deraadt