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 d60758a commit c46f423
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ble-edit.sh
Expand Up @@ -7315,9 +7315,11 @@ function ble/widget/.EDIT_COMMAND {
local command=$1
local READLINE_LINE=$_ble_edit_str
local READLINE_POINT=$_ble_edit_ind
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 c46f423

Please sign in to comment.