diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2006-08-08 10:22:02 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2006-08-08 10:22:02 +0000 |
commit | e9cedf91efb6c7f7ed556762273a89aae838e130 (patch) | |
tree | e7a0cd4e7544994a5ede1fccdc6a3652751ded81 /sys | |
parent | a1c83407c9863e0cbc243064f5c127527d9024bd (diff) |
let ed_patch_lines work with a c command that encompasses the last line
of the file. The TAILQ structures specifically contain an extra `first line'
to avoid this kind of issue, but no extra last line.
Instead of walking beyond the end of the structure, and wondering at the
null pointer, keep a pointer before the deleted block, as this one is
guaranteed to exist.
Fix Matthieu's testcase.
okay joris@, xsa@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions