Fixed bug where could not use textcomplete in the middle of the textarea and would only work at the end.
Not certain why the initial function was intented to be private and not override the one in Textarea.