Skip to content

Commit

Permalink
decode: fix a hang on attach failure by cache corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 28, 2022
1 parent a4cda9c commit a4c13ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ble-edit.sh
Expand Up @@ -7190,7 +7190,11 @@ function ble-edit/bind/.check-detach {
if [[ ( $state == emacs || $state == vi ) && ! -o $state ]]; then
ble-decode/reset-default-keymap
ble-decode-detach
ble-decode-attach
if ! ble-decode-attach; then
ble-detach
ble-edit/bind/.check-detach # 改めて終了処理
return $?
fi
fi

return 1
Expand Down

0 comments on commit a4c13ab

Please sign in to comment.