support end of line insertion now that selection length can be 0
Merge pull request #875 from jay-hodgson/release-34

SWC-1223: support end of line insertion now that selection length can be 0