Fix: autocompletion not recoded when only one case is available

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
fixup! Add test_autocomplete_single() test