CVSROOT:        /cvs
Module name:    src
Changes by:     dera...@cvs.openbsd.org 2011/07/15 10:50:52

Modified files:
        usr.bin/mg     : yank.c 

Log message:
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....

Reply via email to