Fix caret position in undo of 'cw'

This fixes the caret position in an undo of c{motion}.   The previous
rule for caret position was to go to the start of the last line in the
change.  After some experiments today I modified the rules to be

1. Start of change if motion is character wise
2. Start of second line if motion is line wise

closes #1128