Fix cursor position after autocompletion.
replaceWord "returning" the new position is the only way to
do this, the caller doesn't know where the start position is.
This probably allows to simplify (and fix) MessageLine.qml
but I can't test it...
CCMAIL: kevin.funk@kdab.com