Skip to content

Commit

Permalink
global: fix declaration of associative arrays for "ble-reload"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 19, 2021
1 parent 2f85ed3 commit 422de69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/core-complete-def.sh
Expand Up @@ -17,6 +17,7 @@ _ble_complete_load_hook=()
_ble_complete_insert_hook=()

if ! declare -p _ble_complete_sabbrev &>/dev/null; then # reload #D0875
builtin unset -v _ble_complete_sabbrev
if ((_ble_bash>=40300)); then
declare -gA _ble_complete_sabbrev=()
elif ((_ble_bash>=40000&&!_ble_bash_loaded_in_function)); then
Expand Down
2 changes: 2 additions & 0 deletions lib/core-syntax-def.sh
Expand Up @@ -71,6 +71,8 @@ ble/function#try ble/util/idle.push ble/syntax/import ||
bleopt/declare -v filename_ls_colors ''

if ((_ble_bash>=40300||_ble_bash>=40000&&!_ble_bash_loaded_in_function)); then
builtin unset -v _ble_syntax_highlight_filetype
builtin unset -v _ble_syntax_highlight_lscolors_ext
if ((_ble_bash>=40300)); then
declare -gA _ble_syntax_highlight_filetype=()
declare -gA _ble_syntax_highlight_lscolors_ext=()
Expand Down
1 change: 1 addition & 0 deletions src/decode.sh
Expand Up @@ -99,6 +99,7 @@ _ble_decode_FunctionKeyBase=0x110000
if ((_ble_bash>=40300||_ble_bash>=40000&&!_ble_bash_loaded_in_function)); then
_ble_decode_kbd_ver=4
_ble_decode_kbd__n=0
builtin unset -v _ble_decode_kbd__k2c
if ((_ble_bash>=40300)); then
declare -gA _ble_decode_kbd__k2c=()
else
Expand Down

0 comments on commit 422de69

Please sign in to comment.