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 May 20, 2021
1 parent 4b0eb87 commit d4b0700
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/edit.sh
Expand Up @@ -7262,7 +7262,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 d4b0700

Please sign in to comment.