fix segmentation on CJK characters when updating selection
Merge pull request #122 from chrox/master

fix segmentation on CJK characters when updating selection