Bug #1019753, modify selected word highlight algorithm
Merge pull request #2 from pcatalani/Bug1019753

Bug #1019753, modify selected word highlight algorithm