mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Use declare -F to determine if __ltrim_colon_completions exists
This commit is contained in:
parent
f34239004d
commit
5ae6d143e3
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ __handle_reply()
|
|||
fi
|
||||
|
||||
# available in bash-completion >= 2, not always present on macOS
|
||||
if command -v __ltrim_colon_completions >/dev/null; then
|
||||
if declare -F __ltrim_colon_completions >/dev/null; then
|
||||
__ltrim_colon_completions "$cur"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue