Allow input text to be its own valid completion

If the user input text is already a completion word, allow it to
complete itself in addition to any longer completions with the text as a
prefix.

This is a proposed fix for issue #12.