Fix processing of ligatures when setting cursor location
Fix processing of ligatures when setting cursor location

Now the cursor is correctly set when the user navigates in strings like
"ff", "fl", "fi", and other typographic ligatures. 
mgalbier/Envision,Vaishal-shah/Envision,patrick-luethi/Envision,Vaishal-shah/Envision,BalzGuenat/Envision,lukedirtwalker/Envision,dimitar-asenov/Envision,patrick-luethi/Envision,patrick-luethi/Envision,lukedirtwalker/Envision,BalzGuenat/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,dimitar-asenov/Envision,lukedirtwalker/Envision,lukedirtwalker/Envision,mgalbier/Envision,dimitar-asenov/Envision,mgalbier/Envision,BalzGuenat/Envision,Vaishal-shah/Envision,dimitar-asenov/Envision,dimitar-asenov/Envision,mgalbier/Envision,BalzGuenat/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,mgalbier/Envision,Vaishal-shah/Envision,patrick-luethi/Envision,dimitar-asenov/Envision,mgalbier/Envision,BalzGuenat/Envision,BalzGuenat/Envision