Improve tab-completion hint behavior

The hint now shows whenever (and only when) it is possible to use
tab-completion, and persists until the users makes a tab-completion.