Skip to content

Commit f1f454b

Browse files
committed
fix(_comp_finalize): preserve existing values of the finalizer hooks
1 parent d06a9b4 commit f1f454b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bash_completion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,11 @@ _comp_finalize__original_return_trap=
953953

954954
# This associative array contains the finalizer commands with the key
955955
# being the name of the completed command.
956-
declare -gA BASH_COMPLETION_FINALIZE_CMD_HOOKS=()
956+
declare -gA BASH_COMPLETION_FINALIZE_CMD_HOOKS
957957

958958
# This array contains the general finalizer commands that will be
959959
# executed for all the commands.
960-
BASH_COMPLETION_FINALIZE_HOOKS=()
960+
declare -ga BASH_COMPLETION_FINALIZE_HOOKS
961961

962962
_comp_finalize()
963963
{

0 commit comments

Comments
 (0)