From 47dfdd94fd752e8c72aa4de0a8f9525e91cc35e3 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Wed, 23 Feb 2022 14:22:30 +0900 Subject: [PATCH] edit: fix the restore failure of "PS1" and "PROMPT_COMMAND" on "ble-detach" --- ble-edit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ble-edit.sh b/ble-edit.sh index 41c845c2..fc4deaeb 100644 --- a/ble-edit.sh +++ b/ble-edit.sh @@ -1278,9 +1278,9 @@ function ble-edit/prompt/update { if ((_ble_textarea_panel==0)); then # 補助プロンプトに対しては PROMPT_COMMAND は実行しない if [[ $PROMPT_COMMAND ]]; then - local PS1=$_ble_edit_PS1 + ((_ble_edit_attached)) && ble-edit/restore-PS1 ble-edit/prompt/update/eval-prompt_command - _ble_edit_PS1=$PS1 + ((_ble_edit_attached)) && ble-edit/adjust-PS1 fi fi local ps1=$_ble_edit_PS1