lib: preexec: Properly return if there was a conflict in check_*_conflict

It goes the other way around!
pull/2066/head
Noah Gorny 2022-01-26 18:05:34 +02:00
parent 0c24edae06
commit 056c392a54
1 changed files with 2 additions and 2 deletions

View File

@ -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 {