Bugfix for --file=... case
This commit is contained in:
		
							parent
							
								
									1cd979ae18
								
							
						
					
					
						commit
						637ab8855d
					
				| @ -37,6 +37,7 @@ hledgerCompletionFunction() { | ||||
|     if [[ -z $subcommand ]]; then | ||||
| 
 | ||||
| 	declare completeFiles filenameSoFar | ||||
| 	echo "$precedingWord, $wordToComplete" | ||||
| 	case $wordToComplete in | ||||
| 	    --file=*|--rules-file=*) | ||||
| 		completeFiles=1 | ||||
| @ -48,6 +49,10 @@ hledgerCompletionFunction() { | ||||
| 		completeFiles=1 | ||||
| 		filenameSoFar=$wordToComplete | ||||
| 		;; | ||||
| 	    =) | ||||
| 		completeFiles=1 | ||||
| 		filenameSoFar=$wordToComplete | ||||
| 		;; | ||||
| 	esac | ||||
| 
 | ||||
| 	if [[ -n $completeFiles ]]; then | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user