Up to [local] / src / usr.bin / mg
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_3_BASE
Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 15 16:50:52 2011 UTC (12 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.9: +18 -9 lines
Diff to previous 1.9 (colored)
When killing lines using ^U <n> ^K, count the characters exactly (for both forwards and backwards cases, though the forward case is better tested. This is required because the actual character deleter function (ldelete) requires an exact count. If it runs short, it will not put the deletion into the kill buffer. This is complicated by how mg internals consider newline's as counted characters even though they do not occur in the buffers... and then there is the no newline at EOF fiasco....