Extract 'find previous line indentation' code.
Move point to EOL when indenting whitespace.