Fixed paragraph selection if the first or last character is a line break