serious overhaul of multiline editing to (I hope) definitively fix multiline delete and paste