Use getline(3) to handle lines longer than 8192 bytes in patch files
Spotted by jsg@ when working on mesa. Diff tested by sthen@ in
a partial i386 bulk. Input from and ok jsg@ millert@
revision 1.3/ (Download) - annotate - Fri, 02 Sep 2016 21:39:51 UTC by tobias Tags: 6.6_BASE 6.5_BASE 6.4_BASE 6.3_BASE 6.2_BASE 6.1_BASE Changes since 1.2: +3 -2 (diff)
Fix 'c'hange command handling if last line of a file is removed.
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@
revision 1.2/ (Download) - annotate - Mon, 22 Feb 2016 19:31:38 UTC by tobias Tags: 6.0_BASE 5.9_BASE Changes since 1.1: +11 -18 (diff)
Properly handle ed-files which fully replace input file content. This
misbehaviour is triggered with 'c' and 'i' commands on empty buffers.
Spotted and fixed by Martin Natano <natano at natano dot net>.
ok millert@
revision 1.1/ (Download) - Fri, 16 Oct 2015 07:33:47 UTC by tobias
Add native support for ed-style diffs. No need to pledge "proc exec" anymore.
ok deraadt