Style: replace $cur with $subcommand
It changes nothing but spells out intention more clearly
This commit is contained in:
parent
689ad83668
commit
dfc8796b25
@ -34,7 +34,7 @@ _hledger_completion_function() {
|
|||||||
# Do not ignore them!
|
# Do not ignore them!
|
||||||
if [[ $subcommand == "$cur" ]] && ((i == cword)); then
|
if [[ $subcommand == "$cur" ]] && ((i == cword)); then
|
||||||
local subcommandMatches
|
local subcommandMatches
|
||||||
subcommandMatches=$(grep -c "^$cur" <<< "$_hledger_complist_commands")
|
subcommandMatches=$(grep -c "^$subcommand" <<< "$_hledger_complist_commands")
|
||||||
if ((subcommandMatches > 1)); then
|
if ((subcommandMatches > 1)); then
|
||||||
subcommand=
|
subcommand=
|
||||||
break
|
break
|
||||||
|
|||||||
@ -34,7 +34,7 @@ _hledger_completion_function() {
|
|||||||
# Do not ignore them!
|
# Do not ignore them!
|
||||||
if [[ $subcommand == "$cur" ]] && ((i == cword)); then
|
if [[ $subcommand == "$cur" ]] && ((i == cword)); then
|
||||||
local subcommandMatches
|
local subcommandMatches
|
||||||
subcommandMatches=$(grep -c "^$cur" <<< "$_hledger_complist_commands")
|
subcommandMatches=$(grep -c "^$subcommand" <<< "$_hledger_complist_commands")
|
||||||
if ((subcommandMatches > 1)); then
|
if ((subcommandMatches > 1)); then
|
||||||
subcommand=
|
subcommand=
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user