corrected issue detecting deleted lines when inserting

the conditions for resetting the modified line (selection start and end
both at begin or end of line) also needed to include that no characters
were added when the selection was deleted