Description
The list_all_packages generator callback in command-signatures/src/generators/apt.rs pushes a suggestion for every line of output without filtering empty lines. Unlike list_available_packages (which guards with is_empty()), a trailing newline or blank line in dpkg-query output produces an empty suggestion in the completion list.
Where
command-signatures/src/generators/apt.rs — compare list_all_packages (no empty check) with list_available_packages (has the check). list_all_deb_files_in_cwd has the same gap.
Expected
Blank lines filtered out before creating suggestions, consistently across the three apt callbacks.
Impact
Cosmetic but user-visible: an empty row can appear in apt-get completions.
Description
The
list_all_packagesgenerator callback incommand-signatures/src/generators/apt.rspushes a suggestion for every line of output without filtering empty lines. Unlikelist_available_packages(which guards withis_empty()), a trailing newline or blank line indpkg-queryoutput produces an empty suggestion in the completion list.Where
command-signatures/src/generators/apt.rs— comparelist_all_packages(no empty check) withlist_available_packages(has the check).list_all_deb_files_in_cwdhas the same gap.Expected
Blank lines filtered out before creating suggestions, consistently across the three apt callbacks.
Impact
Cosmetic but user-visible: an empty row can appear in apt-get completions.