Clarify comment in extension completion function
This commit is contained in:
parent
c729708343
commit
9d94f84781
@ -90,8 +90,8 @@ _hledger_completion_function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_hledger_extension_completion_function() {
|
_hledger_extension_completion_function() {
|
||||||
# Change parameters and arguments and call the
|
# Pretend that hledger is called with given extension
|
||||||
# normal hledger completion function.
|
# as first argument and call main completion function
|
||||||
COMP_WORDS=("hledger" "${1#*-}" "${COMP_WORDS[@]:1}")
|
COMP_WORDS=("hledger" "${1#*-}" "${COMP_WORDS[@]:1}")
|
||||||
COMP_CWORD=$((COMP_CWORD + 1))
|
COMP_CWORD=$((COMP_CWORD + 1))
|
||||||
_hledger_completion_function "hledger" "${@:1}"
|
_hledger_completion_function "hledger" "${@:1}"
|
||||||
|
|||||||
@ -90,8 +90,8 @@ _hledger_completion_function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_hledger_extension_completion_function() {
|
_hledger_extension_completion_function() {
|
||||||
# Change parameters and arguments and call the
|
# Pretend that hledger is called with given extension
|
||||||
# normal hledger completion function.
|
# as first argument and call main completion function
|
||||||
COMP_WORDS=("hledger" "${1#*-}" "${COMP_WORDS[@]:1}")
|
COMP_WORDS=("hledger" "${1#*-}" "${COMP_WORDS[@]:1}")
|
||||||
COMP_CWORD=$((COMP_CWORD + 1))
|
COMP_CWORD=$((COMP_CWORD + 1))
|
||||||
_hledger_completion_function "hledger" "${@:1}"
|
_hledger_completion_function "hledger" "${@:1}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user