Block repeat with partial character edits

This fixes block inserts where the selection extends partially through
characters (in particular tabs).  It will now correctly convert the edit
to spaces before applying the change to the line

issue #964