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