Fix multiline selection bug

Fixes #8