__ltrim_colon_completions is not always available on macOS (#459)
* __ltrim_colon_completions is not always available on macOS, so bash-completion should check first
This commit is contained in:
		@ -132,7 +132,10 @@ __handle_reply()
 | 
				
			|||||||
        declare -F __custom_func >/dev/null && __custom_func
 | 
					        declare -F __custom_func >/dev/null && __custom_func
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # available in bash-completion >= 2, not always present on macOS
 | 
				
			||||||
 | 
					    if declare -F __ltrim_colon_completions >/dev/null; then
 | 
				
			||||||
        __ltrim_colon_completions "$cur"
 | 
					        __ltrim_colon_completions "$cur"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The arguments should be in the form "ext1|ext2|extn"
 | 
					# The arguments should be in the form "ext1|ext2|extn"
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user