Skip to content

Commit

Permalink
edit: restore "PS1" while processing "bind -x"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Apr 3, 2023
1 parent 8787ca5 commit 604c092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/edit.sh
Expand Up @@ -7454,9 +7454,11 @@ function ble/widget/.EDIT_COMMAND {
local READLINE_POINT=$_ble_edit_ind
local READLINE_MARK=$_ble_edit_mark
ble/widget/.hide-current-line keep-header
ble-edit/restore-PS1
ble/term/leave-for-widget
builtin eval -- "$command"; local ext=$?
ble/term/enter-for-widget
ble-edit/adjust-PS1
ble-edit/content/clear-arg
((ext==0)) || return 1

Expand Down

0 comments on commit 604c092

Please sign in to comment.