Make emacs behave correctly when completing with one option

This fixes emacs autocompletion when there is only one candidate.