The CompletionWindow class has properties
StartOffset
and
EndOffset
that control which part of the document text is considered to be the 'current word'.
So basically, if you are opening the CompletionWindow after the "i" is already inserted, all you need to do is:
completionWindow.StartOffset -= 1;