Slight improvement in auto-completion logic, for resetting the found prefix and word.
Slight improvement in auto-completion logic, for resetting the found prefix and word.

slackhq/SlackTextViewController,kobim/SlackTextViewController,slackhq/SlackTextViewController,kobim/SlackTextViewController