CVS Repository/ src/ usr.bin/ patch/ ed.c



8.0, 8.0_BASE, 7.9, 7.9_BASE, 7.8, 7.8_BASE, 7.7, 7.7_BASE, 7.6, 7.6_BASE, 7.5, 7.5_BASE, 7.4, 7.4_BASE, 7.3, 7.3_BASE, 7.2, 7.2_BASE, 7.1, 7.1_BASE, 7.0, 7.0_BASE, 6.9, 6.9_BASE, 6.8, 6.8_BASE, 6.7, 6.7_BASE, 6.6, 6.6_BASE, 6.5, 6.5_BASE, 6.4, 6.4_BASE, 6.3, 6.3_BASE, 6.2, 6.2_BASE, 6.1, 6.1_BASE, 6.0, 6.0_BASE, 5.9, 5.9_BASE,
revision 1.4/ (Download) - annotate - Mon, 02 Dec 2019 22:17:32 UTC by jca
Tags: 8.0_BASE 7.9_BASE 7.8_BASE 7.7_BASE 7.6_BASE 7.5_BASE 7.4_BASE 7.3_BASE 7.2_BASE 7.1_BASE 7.0_BASE 6.9_BASE 6.8_BASE 6.7_BASE
Changes since 1.3: +3 -3 (diff)
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