Originally Posted by Illuvitar
Thanks for this!
If the cursor can be positioned before the completed expansion, can't it be moved to the right (assuming a left to right language) by the same number characters as the length of the expansion string, so as to end up immediately after it?
Yes, it does seem like it would be that straightforward. The problem is, some of the other background operations (spell check, auto correct, search suggestions, etc.) are also interacting with the text box through the same interface as the module. There are quite a few checks internally that compare things like word position, text length, cursor index, and others. When the length or cursor position is extended beyond what the text box is expected to contain at that moment, it can result in crash of the app. I'll looking into a workaround, positioning the cursor at the end of the expanded word is the most ideal option.