set charPositionInLine for #1116