Slight position fix in deleteRangeContents() (use count instead of getLastPosition).
Slight position fix in deleteRangeContents() (use count instead of getLastPosition).

lohfu/spytext,thecodebureau/spytext