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!
 | 
			
		||||
        if [[ $subcommand == "$cur" ]] && ((i == cword)); then
 | 
			
		||||
            local subcommandMatches
 | 
			
		||||
            subcommandMatches=$(grep -c "^$cur" <<< "$_hledger_complist_commands")
 | 
			
		||||
            subcommandMatches=$(grep -c "^$subcommand" <<< "$_hledger_complist_commands")
 | 
			
		||||
            if ((subcommandMatches > 1)); then
 | 
			
		||||
                subcommand=
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,7 @@ _hledger_completion_function() {
 | 
			
		||||
        # Do not ignore them!
 | 
			
		||||
        if [[ $subcommand == "$cur" ]] && ((i == cword)); then
 | 
			
		||||
            local subcommandMatches
 | 
			
		||||
            subcommandMatches=$(grep -c "^$cur" <<< "$_hledger_complist_commands")
 | 
			
		||||
            subcommandMatches=$(grep -c "^$subcommand" <<< "$_hledger_complist_commands")
 | 
			
		||||
            if ((subcommandMatches > 1)); then
 | 
			
		||||
                subcommand=
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user