Minor cleanup. (WIP)
Make cursorPositionByCharacters calculated.