Fix edge case for #7075 where selection ends at beginning of last line of document
Merge pull request #7111 from adobe/nj/issue-7075-edge-case

Fix edge case for #7075 where selection ends at beginning of last line of document