Skip to content

Commit

Permalink
edit: fix the restore failure of "PS1" and "PROMPT_COMMAND" on "ble-d…
Browse files Browse the repository at this point in the history
…etach"
  • Loading branch information
akinomyoga committed Jul 28, 2022
1 parent fb607ad commit 47dfdd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ble-edit.sh
Expand Up @@ -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
Expand Down

0 comments on commit 47dfdd9

Please sign in to comment.