Changes: EngineManager::clearPreedit() to take preedit cursor position into account
Changes: EngineManager::clearPreedit() to take preedit cursor position into account

RevBy: Jarno Malmari
Details: Bug can be experienced e.g. by using widgetsgallery custom
toolbar 2 entry, cursor inside preedit and clicking smiley in toolbar
button. First is commit word which moves cursor to the end of the
word, and then inserts the smiley there.

maliit/plugins,develersrl/maliit-demo-qml,RHawkeyed/plugins,KDE/plasma-maliit-plugins,RHawkeyed/plugins,KDE/plasma-maliit-plugins,develersrl/maliit-demo-qml,develersrl/maliit-demo-qml,maliit/plugins,develersrl/maliit-demo-qml,maliit/plugins,RHawkeyed/plugins,maliit/plugins,RHawkeyed/plugins,KDE/plasma-maliit-plugins,KDE/plasma-maliit-plugins,RHawkeyed/plugins