szermatt / emacs-bash-completion

Add programmable bash completion to Emacs shell-mode
GNU General Public License v2.0
279 stars 33 forks source link

Use default completion spec when no comp spec is found for current cmd #59

Closed montag451 closed 1 year ago

montag451 commented 1 year ago

The commit 718d768 introduced a regression when the current command has no completion spec defined. Instead of using the default completion spec, it uses the first one returned by "complete -p". This commit restores the old behaviour.

szermatt commented 1 year ago

Thank you for the fix! Yes, the 2nd complete -p was supposed to have a -D… This clearly lacks a test.