Clarify comment in extension completion function

This commit is contained in:
Vladimir Zhelezov 2020-12-11 08:20:50 +01:00
parent c729708343
commit 9d94f84781
2 changed files with 4 additions and 4 deletions

View File

@ -90,8 +90,8 @@ _hledger_completion_function() {
}
_hledger_extension_completion_function() {
# Change parameters and arguments and call the
# normal hledger completion function.
# Pretend that hledger is called with given extension
# as first argument and call main completion function
COMP_WORDS=("hledger" "${1#*-}" "${COMP_WORDS[@]:1}")
COMP_CWORD=$((COMP_CWORD + 1))
_hledger_completion_function "hledger" "${@:1}"

View File

@ -90,8 +90,8 @@ _hledger_completion_function() {
}
_hledger_extension_completion_function() {
# Change parameters and arguments and call the
# normal hledger completion function.
# Pretend that hledger is called with given extension
# as first argument and call main completion function
COMP_WORDS=("hledger" "${1#*-}" "${COMP_WORDS[@]:1}")
COMP_CWORD=$((COMP_CWORD + 1))
_hledger_completion_function "hledger" "${@:1}"