Bug fix for tab completion when there is text before the prefix.