White space
This commit is contained in:
parent
046421e712
commit
b6a4a887b9
@ -190,7 +190,7 @@ _hledger_compgen() {
|
|||||||
quoted[i++]=$word
|
quoted[i++]=$word
|
||||||
done <<< "$complist"
|
done <<< "$complist"
|
||||||
|
|
||||||
if (( $# < 3 )); then
|
if (($# < 3)); then
|
||||||
match=${cur:${#prefix}}
|
match=${cur:${#prefix}}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ _hledger_optarg() {
|
|||||||
|
|
||||||
# hledger balance --file ~/ledger _
|
# hledger balance --file ~/ledger _
|
||||||
# 0 1 2 3 4
|
# 0 1 2 3 4
|
||||||
for (( i=1; i < ${#words[@]} - 2; i++ )); do
|
for ((i=1; i < ${#words[@]} - 2; i++)); do
|
||||||
offset=0
|
offset=0
|
||||||
for j in "${!options[@]}"; do
|
for j in "${!options[@]}"; do
|
||||||
if [[ ${words[i]} == "${options[j]}" ]]; then
|
if [[ ${words[i]} == "${options[j]}" ]]; then
|
||||||
|
|||||||
@ -190,7 +190,7 @@ _hledger_compgen() {
|
|||||||
quoted[i++]=$word
|
quoted[i++]=$word
|
||||||
done <<< "$complist"
|
done <<< "$complist"
|
||||||
|
|
||||||
if (( $# < 3 )); then
|
if (($# < 3)); then
|
||||||
match=${cur:${#prefix}}
|
match=${cur:${#prefix}}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ _hledger_optarg() {
|
|||||||
|
|
||||||
# hledger balance --file ~/ledger _
|
# hledger balance --file ~/ledger _
|
||||||
# 0 1 2 3 4
|
# 0 1 2 3 4
|
||||||
for (( i=1; i < ${#words[@]} - 2; i++ )); do
|
for ((i=1; i < ${#words[@]} - 2; i++)); do
|
||||||
offset=0
|
offset=0
|
||||||
for j in "${!options[@]}"; do
|
for j in "${!options[@]}"; do
|
||||||
if [[ ${words[i]} == "${options[j]}" ]]; then
|
if [[ ${words[i]} == "${options[j]}" ]]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user