Skip to content

Commit

Permalink
edit: preserve "PS1" when "internal_suppress_bash_output" is set
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 11, 2020
1 parent 6d72d2a commit 537acf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/edit.sh
Expand Up @@ -1111,12 +1111,12 @@ function ble-edit/content/clear-arg {
## 変数 _ble_edit_IGNOREEOF

_ble_edit_PS1_adjusted=
_ble_edit_PS1=
_ble_edit_PS1='\s-\v\$ '
function ble-edit/adjust-PS1 {
[[ $_ble_edit_PS1_adjusted ]] && return
_ble_edit_PS1_adjusted=1
_ble_edit_PS1=$PS1
PS1=
[[ $bleopt_internal_suppress_bash_output ]] || PS1=
}
function ble-edit/restore-PS1 {
[[ $_ble_edit_PS1_adjusted ]] || return
Expand Down

0 comments on commit 537acf2

Please sign in to comment.