Make sure = is present in COMP_WORDBREAKS
				
					
				
			Currently option processing logic is based on the assumption that `=` is a word-breaking character, so make sure it is present in COMP_WORDBREAKS
This commit is contained in:
		
							parent
							
								
									8c14dfb3eb
								
							
						
					
					
						commit
						d943fa613e
					
				| @ -14,8 +14,13 @@ _hledger_completion_function() { | ||||
| 
 | ||||
|     # Current treatment for special characters: | ||||
|     # - exclude colon (:) from COMP_WORDBREAKS | ||||
|     # - option processing assumes that `=` is in COMP_WORDBREAKS | ||||
|     # - use comptop -o filenames to escape the rest | ||||
|     COMP_WORDBREAKS=${COMP_WORDBREAKS//:} | ||||
|     case "$COMP_WORDBREAKS" in | ||||
|         *=*) : ;; | ||||
|         *)   COMP_WORDBREAKS="$COMP_WORDBREAKS=" ;; | ||||
|     esac | ||||
|     compopt -o filenames | ||||
| 
 | ||||
|     local subcommand | ||||
|  | ||||
| @ -14,8 +14,13 @@ _hledger_completion_function() { | ||||
| 
 | ||||
|     # Current treatment for special characters: | ||||
|     # - exclude colon (:) from COMP_WORDBREAKS | ||||
|     # - option processing assumes that `=` is in COMP_WORDBREAKS | ||||
|     # - use comptop -o filenames to escape the rest | ||||
|     COMP_WORDBREAKS=${COMP_WORDBREAKS//:} | ||||
|     case "$COMP_WORDBREAKS" in | ||||
|         *=*) : ;; | ||||
|         *)   COMP_WORDBREAKS="$COMP_WORDBREAKS=" ;; | ||||
|     esac | ||||
|     compopt -o filenames | ||||
| 
 | ||||
|     local subcommand | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user