Only show URI completion when the prefix matches

This fixes questionable behavior when the user wrote code and presses enter to
hide the completion box, but that instead replaces his own code.

Fixed #107.