From 056c392a54345db701ee9ebdafdd5fd32dd67aa3 Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Wed, 26 Jan 2022 18:05:34 +0200 Subject: [PATCH] lib: preexec: Properly return if there was a conflict in check_*_conflict It goes the other way around! --- lib/preexec.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preexec.bash b/lib/preexec.bash index d0d5b6da..17cabdf9 100644 --- a/lib/preexec.bash +++ b/lib/preexec.bash @@ -29,13 +29,13 @@ __bp_install_after_session_init function __check_precmd_conflict() { local f __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() { local f __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 {