Fix summary selection to account for documents having CRNL line endings

This fixes an issue where the summary selection started one character too early in documents that uses CRNL line endings.