summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/ed.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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