lib: preexec: Properly return if there was a conflict in check_*_conflict
It goes the other way around!pull/2066/head
parent
0c24edae06
commit
056c392a54
|
|
@ -29,13 +29,13 @@ __bp_install_after_session_init
|
||||||
function __check_precmd_conflict() {
|
function __check_precmd_conflict() {
|
||||||
local f
|
local f
|
||||||
__bp_trim_whitespace f "${1?}"
|
__bp_trim_whitespace f "${1?}"
|
||||||
! _bash-it-array-contains-element "${f}" "${precmd_functions[@]}"
|
_bash-it-array-contains-element "${f}" "${precmd_functions[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function __check_preexec_conflict() {
|
function __check_preexec_conflict() {
|
||||||
local f
|
local f
|
||||||
__bp_trim_whitespace f "${1?}"
|
__bp_trim_whitespace f "${1?}"
|
||||||
! _bash-it-array-contains-element "${f}" "${preexec_functions[@]}"
|
_bash-it-array-contains-element "${f}" "${preexec_functions[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function safe_append_prompt_command {
|
function safe_append_prompt_command {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue