Dedent visual line selections before using them.

Fixes #217.