fixed paragraph behavior with whitespace and beginning of visual selection logic